mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-06 21:05:08 +02:00
fix: emacs-rime & doom's PATH
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
# Emacs Editor
|
# Emacs Editor
|
||||||
|
|
||||||
- Framework: <https://github.com/doomemacs/doomemacs>
|
- Framework: <https://github.com/doomemacs/doomemacs>
|
||||||
|
- key bindings: <https://github.com/doomemacs/doomemacs/blob/master/modules/config/default/%2Bevil-bindings.el>
|
||||||
- Chinese(rime) support: <https://github.com/DogLooksGood/emacs-rime>
|
- Chinese(rime) support: <https://github.com/DogLooksGood/emacs-rime>
|
||||||
- modal editing:
|
- modal editing:
|
||||||
- <https://github.com/emacs-evil/evil>: evil mode, enabled by default in doom-emacs.
|
- <https://github.com/emacs-evil/evil>: evil mode, enabled by default in doom-emacs.
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.modules.editors.emacs;
|
cfg = config.modules.editors.emacs;
|
||||||
envExtra = ''
|
envExtra = ''
|
||||||
export PATH="${config.xdg.cacheHome}/emacs/bin:$PATH"
|
export PATH="${config.xdg.configHome}/emacs/bin:$PATH"
|
||||||
'';
|
'';
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
e = "emacs";
|
e = "emacs";
|
||||||
@@ -37,6 +37,9 @@ in {
|
|||||||
((emacsPackagesFor emacs-unstable-nox).emacsWithPackages
|
((emacsPackagesFor emacs-unstable-nox).emacsWithPackages
|
||||||
(epkgs: [
|
(epkgs: [
|
||||||
epkgs.vterm
|
epkgs.vterm
|
||||||
|
# https://github.com/NixOS/nixpkgs/blob/nixos-23.11/pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix#L488-L498
|
||||||
|
# failed to build on macOS Apple Silicon
|
||||||
|
(if pkgs.stdenv.isLinux then epkgs.rime else nil)
|
||||||
]))
|
]))
|
||||||
emacs-all-the-icons-fonts
|
emacs-all-the-icons-fonts
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,8 @@
|
|||||||
|
|
||||||
(doom! :input
|
(doom! :input
|
||||||
;;bidi ; (tfel ot) thgir etirw uoy gnipleh
|
;;bidi ; (tfel ot) thgir etirw uoy gnipleh
|
||||||
(chinese +rime)
|
;; failed to build emacs-rime on macOS
|
||||||
|
(:if IS-LINUX (chinese +rime) chinese)
|
||||||
;;japanese
|
;;japanese
|
||||||
;;layout ; auie,ctsrnm is the superior home row
|
;;layout ; auie,ctsrnm is the superior home row
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user