Commit Graph

694 Commits

Author SHA1 Message Date
Lin Jian
7d4ea94d02 emacs: keep the default first writable native-comp-eln-load-path dir
Fixes https://github.com/NixOS/nixpkgs/issues/247804.
2023-08-28 15:46:04 +00:00
Lin Jian
2d324ed8f9 emacs: fix the detection of native compilation for Emacs 29
In Emacs 29, feature comp does not load early enough.  We use
native-compile instead.  This is also what Emacs uses[1].

[1]: https://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/startup.el?id=3685387e609753293c4518be75e77c659c3b2d8d#n586
2023-08-28 15:46:04 +00:00
Lin Jian
1506ab49e3 emacs: correct the order of profiles and their sub dirs in load-path
This patch does two things:
1. making user profiles preferred over system profiles
2. putting sub dirs of one profile to the right place
  - before this patch, they are appended to the end of load-path
  - after this patch, they are inserted right after the profile

Example value of load-path before this patch:

  /run/current-system/sw/share/emacs/site-lisp/
  /etc/profiles/per-user/user/share/emacs/site-lisp/
  /nix/store/hash1-emacs-packages-deps/share/emacs/site-lisp
  /nix/store/hash1-emacs-packages-deps/share/emacs/site-lisp/elpa
  /nix/store/hash1-emacs-packages-deps/share/emacs/site-lisp/elpa/wgrep-20230203.1214
  /nix/store/hash2-emacs-29.1-rc1/share/emacs/29.1/site-lisp
  /nix/store/hash2-emacs-29.1-rc1/share/emacs/site-lisp
  /nix/store/hash2-emacs-29.1-rc1/share/emacs/29.1/lisp
  /nix/store/hash2-emacs-29.1-rc1/share/emacs/29.1/lisp/vc
  ...
  /etc/profiles/per-user/user/share/emacs/site-lisp/elpa
  /etc/profiles/per-user/user/share/emacs/site-lisp/elpa/jinx-20230730.1200
  /run/current-system/sw/share/emacs/site-lisp/elpa
  /run/current-system/sw/share/emacs/site-lisp/elpa/repology-1.2.3

after this patch:

  /etc/profiles/per-user/user/share/emacs/site-lisp
  /etc/profiles/per-user/user/share/emacs/site-lisp/elpa
  /etc/profiles/per-user/user/share/emacs/site-lisp/elpa/jinx-20230730.1200
  /run/current-system/sw/share/emacs/site-lisp
  /run/current-system/sw/share/emacs/site-lisp/elpa
  /run/current-system/sw/share/emacs/site-lisp/elpa/repology-1.2.3
  /nix/store/hash1-emacs-packages-deps/share/emacs/site-lisp
  /nix/store/hash1-emacs-packages-deps/share/emacs/site-lisp/elpa
  /nix/store/hash1-emacs-packages-deps/share/emacs/site-lisp/elpa/wgrep-20230203.1214
  /nix/store/hash2-emacs-29.1-rc1/share/emacs/29.1/site-lisp
  /nix/store/hash2-emacs-29.1-rc1/share/emacs/site-lisp
  /nix/store/hash2-emacs-29.1-rc1/share/emacs/29.1/lisp
  /nix/store/hash2-emacs-29.1-rc1/share/emacs/29.1/lisp/vc
  ...
2023-08-28 15:46:04 +00:00
Daniel Nagy
1159c64f58
emacsPackages.pikchr-mode: replace program 2023-08-27 09:15:00 +02:00
Mario Rodas
a153adf6cc
Merge pull request #251201 from nagy/emacs-typst-mode
emacsPackages.typst-mode: replace program
2023-08-26 11:35:19 -05:00
Anderson Torres
f6a6dc801f emacs: refactor
- Remove the excessive repetition of inherited packages
- Factor the excessive repetition of metadata in sources.nix
2023-08-26 16:21:58 +00:00
Daniel Nagy
faeb7ac63a
emacsPackages.typst-mode: replace program 2023-08-26 16:30:00 +02:00
Anthony Cowley
9b3fefd37d elpa-devel-packages: build xeft dynamic module
Build the native dynamic module required by the xeft package for Emacs.
2023-08-24 03:26:59 +00:00
Anthony Cowley
6dd389dd9f elpa-packages: build xeft dynamic module
Build the native dynamic module required by the xeft package for Emacs.
2023-08-24 03:26:59 +00:00
Anderson Torres
473e81ede4 emacs: better glib-networking detection
Fixes https://github.com/NixOS/nixpkgs/issues/249756
2023-08-18 11:58:47 +00:00
Anderson Torres
68f38d4634 emacsPackages.consult-gh: init at 20230706.438 2023-08-15 12:48:06 +00:00
Anderson Torres
e270bfe914 emacsPackages.power-mode: remove
Because it was MELPA'd.
2023-08-15 12:48:06 +00:00
Anderson Torres
2160abc3ed emacs29-macport: init at 29.1 2023-08-10 23:45:09 -03:00
Anderson Torres
05d277b11e emacs29: 29.1-rc1 -> 29.1 2023-08-10 23:45:09 -03:00
Anderson Torres
7e445b6d72 emacs: factor meta 2023-08-10 23:45:04 -03:00
Anderson Torres
ae4e2e8676 emacs28-macport: rename from emacs-macport
Also, move emacsMacport to aliases.nix.
2023-08-10 22:47:13 -03:00
Lin Jian
de24b1e3b1 emacs.pkgs.eglot: build info manual 2023-08-08 18:53:47 +00:00
Anderson Torres
065a7ed424 nongnu-packages: updated 2023-08-06 (from overlay) 2023-08-08 11:38:19 +00:00
Anderson Torres
c23bd886e1 melpa-packages: updated 2023-08-06 (from overlay) 2023-08-08 11:38:19 +00:00
Anderson Torres
deb0c58086 elpa-devel-packages: updated 2023-08-06 (from overlay) 2023-08-08 11:38:19 +00:00
Anderson Torres
e07cb46e21 elpa-packages: updated 2023-08-06 (from overlay) 2023-08-08 11:38:19 +00:00
Austin Horstman
58920127ca
treewide: add meta.mainProgram to editors 2023-08-04 11:44:05 -05:00
Jan Malakhovski
5852f26bdc treewide: noop: refer to src.name or similar in sourceRoot where appropriate, part 1: trivial cases 2023-08-03 16:32:03 +00:00
Mario Rodas
503c869a42 emacs29: 29.0.92 -> 29.1-rc1
Changelog: https://git.savannah.gnu.org/cgit/emacs.git/tree/etc/NEWS?h=emacs-29

Release Notes: https://lists.gnu.org/archive/html/emacs-devel/2023-07/msg00704.html
2023-07-23 04:20:00 +00:00
Theodore Ni
43850a77db
emacsPackages.tsc: adapt update script to new nix-prefetch-github
The update script seems to have been broken already. More work needs to
be done to fix it. In the meantime, this PR also takes the opportunity
to switch to using newer "hash" and "cargoHash" attributes.
2023-07-18 16:55:33 -07:00
R. Ryantm
75d49ecfa9 emacsPackages.ebuild-mode: 1.64 -> 1.65 2023-07-13 12:54:56 +00:00
Anderson Torres
a062bf3d8e emacs: factor meta
Because metadata pertains to the source code variants, not to the build logic.
2023-07-07 00:23:47 -03:00
adisbladis
e4d9386f02
Merge pull request #238737 from panchoh/bump-emacs-29.0.92
emacs29: 29.0.91 -> 29.0.92
2023-06-21 04:14:30 +12:00
pancho horrillo
dcbae5b0aa
emacs29: 29.0.91 -> 29.0.92 (both pretest)
The new pretest was recently made available¹.

[1]: https://lists.gnu.org/archive/html/emacs-devel/2023-06/msg00503.html
2023-06-20 11:48:08 +02:00
adisbladis
8ce7893477 emacs: add back treeSitter passthru 2023-06-20 02:18:47 +12:00
adisbladis
75650d79da emacs: add nativeComp passthru
As reported by @terlar in
https://github.com/NixOS/nixpkgs/pull/235859#issuecomment-1597012885
the removal of nativeComp in passthru breaks external tooling.

This adds back `passthru.nativeComp` with a deprecation notice which sets the removal for 23.11.
2023-06-20 02:18:47 +12:00
R. Ryantm
0b282be97a emacsPackages.ebuild-mode: 1.63 -> 1.64 2023-06-19 04:57:08 +00:00
Brian Leung
3cda91a80c Update elpa-devel-generated 2023-06-15 01:10:27 +00:00
Brian Leung
9c53e33ed6 Update emacs2nix 2023-06-15 01:10:27 +00:00
Mario Rodas
104992f3cf emacs: disable withXwidgets on darwin
withXwidgets requires webkitgtk, which is marked as broken on Darwin.
2023-06-13 04:20:00 +00:00
Atemu
328bcf4d57
Merge pull request #235859 from atorres1985-contrib/emacs-refactor
Emacs refactor - Round II
2023-06-12 15:31:54 +02:00
Anderson Torres
6889144e31 nongnu-packages: updated 2023-06-11 (from overlay) 2023-06-11 20:54:28 +00:00
Anderson Torres
8aa4d45ecc nongnu-packages: updated 2023-06-10 (from overlay) 2023-06-11 20:54:28 +00:00
Anderson Torres
f7cbd9fce2 melpa-packages: updated 2023-06-11 (from overlay) 2023-06-11 20:54:28 +00:00
Anderson Torres
51e5f35b27 melpa-packages: updated 2023-06-10 (from overlay) 2023-06-11 20:54:28 +00:00
Anderson Torres
487476d477 elpa-devel-packages: updated 2023-06-11 (from overlay) 2023-06-11 20:54:28 +00:00
Anderson Torres
110edeb87e elpa-packages: updated 2023-06-11 (from overlay) 2023-06-11 20:54:28 +00:00
Anderson Torres
b5bb1a4b47 elpa-packages: updated 2023-06-10 (from overlay) 2023-06-11 20:54:28 +00:00
Anderson Torres
4775531c49 emacs.pkgs.sunrise-commander: refactor 2023-06-11 20:54:28 +00:00
Anderson Torres
817356b227 emacs update-from-overlay: include elpa-devel 2023-06-11 20:54:28 +00:00
Brian Ryall
9967f8a796 emacsPackages.beancount: init at 20230205.436 2023-06-10 15:40:16 +00:00
Anderson Torres
e5e43e6beb emacs generic: rename attributes
Namely:

- treeSitter -> withTreeSitter
- nativeComp -> withNativeCompilation
2023-06-07 23:26:31 -03:00
Kira Bruneau
3f9a4f843c lsp-bridge: 20230603.345 -> 20230607.135 2023-06-07 13:00:01 -04:00
Damien Cassou
f676747451
Merge pull request #235994 from marsam/refactor-emacs.pkgs.treesit-grammars 2023-06-06 21:53:58 +02:00
Anderson Torres
196d71b295 emacs generic: decouple Xwidgets from X 2023-06-04 22:51:03 -03:00