diff --git a/emacs/.config/chemacs/profiles.el b/emacs/.config/chemacs/profiles.el new file mode 100644 index 0000000..f73b98f --- /dev/null +++ b/emacs/.config/chemacs/profiles.el @@ -0,0 +1,3 @@ +(("default" . ((user-emacs-directory . "~/.config/emacs"))) +("doom" . ((user-emacs-directory . "~/.local/share/doom") + (env . (("DOOMDIR" . "~/.config/doom")))))) diff --git a/emacs/.emacs.d/config.org b/emacs/.config/emacs/config.org similarity index 100% rename from emacs/.emacs.d/config.org rename to emacs/.config/emacs/config.org diff --git a/emacs/.emacs.d/init.el b/emacs/.config/emacs/init.el similarity index 100% rename from emacs/.emacs.d/init.el rename to emacs/.config/emacs/init.el diff --git a/fish/.config/omf/init.fish b/fish/.config/omf/init.fish index 41979f5..de61690 100644 --- a/fish/.config/omf/init.fish +++ b/fish/.config/omf/init.fish @@ -27,7 +27,7 @@ end # Add paths path_if_exists ~/.local/share/yarn/global/node_modules/.bin path_if_exists ~/.local/bin -path_if_exists ~/.emacs.d/bin +path_if_exists ~/.local/share/doom/bin path_if_exists ~/.local/share/cargo/bin path_if_exists ~/.local/share/go/bin @@ -133,6 +133,9 @@ abbr --add rm "rm -i" # Colorize diff abbr --add diff "diff --color" +# Doom Emacs alias +abbr --add demacs "emacs --with-profile doom" + # Load lfcd wiith proper icons function lf set -lx LF_ICONS "\ diff --git a/install b/install index 1e47e04..a744d13 100755 --- a/install +++ b/install @@ -84,12 +84,12 @@ mkdir_if_not_exist ~/.config/systemd/user mkdir_if_not_exist ~/.config/wal mkdir_if_not_exist ~/.config/weechat mkdir_if_not_exist ~/.config/X11 -mkdir_if_not_exist ~/.emacs.d mkdir_if_not_exist ~/.gnupg mkdir_if_not_exist ~/.config/mpv/scripts mkdir_if_not_exist ~/.config/coc/extensions mkdir_if_not_exist ~/.config/dmenu-frecency mkdir_if_not_exist ~/.config/doom +mkdir_if_not_exist ~/.config/emacs mkdir_if_not_exist ~/.config/sxhkd mkdir_if_not_exist ~/.local/share/applications diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index da55b87..074cb54 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -83,6 +83,9 @@ alias rm="rm -i" # Colorize diff alias diff="diff --color" +# Doom Emacs alias +alias demacs="emacs --with-profile doom" + # Use lf to switch directories and bind it to ctrl-o lfcd() { tmp="$(mktemp)" diff --git a/zsh/.zshenv b/zsh/.zshenv index 7b2c90b..038446b 100644 --- a/zsh/.zshenv +++ b/zsh/.zshenv @@ -10,7 +10,7 @@ TERM="xterm-256color" # PATH path_if_exists ~/.local/share/yarn/global/node_modules/.bin path_if_exists ~/.local/bin -path_if_exists ~/.emacs.d/bin +path_if_exists ~/.local/share/doom/bin path_if_exists ~/.local/share/go/bin path_if_exists ~/.local/share/cargo/bin