1
0
mirror of https://github.com/alrayyes/dotfiles/ synced 2023-11-14 15:56:30 +00:00

feat(emacs): added chemacs support

This commit is contained in:
Ryan Kes 2021-06-25 19:14:45 +02:00
parent 034c581b80
commit f3836b9423
7 changed files with 12 additions and 3 deletions

View File

@ -0,0 +1,3 @@
(("default" . ((user-emacs-directory . "~/.config/emacs")))
("doom" . ((user-emacs-directory . "~/.local/share/doom")
(env . (("DOOMDIR" . "~/.config/doom"))))))

View File

@ -27,7 +27,7 @@ end
# Add paths # Add paths
path_if_exists ~/.local/share/yarn/global/node_modules/.bin path_if_exists ~/.local/share/yarn/global/node_modules/.bin
path_if_exists ~/.local/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/cargo/bin
path_if_exists ~/.local/share/go/bin path_if_exists ~/.local/share/go/bin
@ -133,6 +133,9 @@ abbr --add rm "rm -i"
# Colorize diff # Colorize diff
abbr --add diff "diff --color" abbr --add diff "diff --color"
# Doom Emacs alias
abbr --add demacs "emacs --with-profile doom"
# Load lfcd wiith proper icons # Load lfcd wiith proper icons
function lf function lf
set -lx LF_ICONS "\ set -lx LF_ICONS "\

View File

@ -84,12 +84,12 @@ mkdir_if_not_exist ~/.config/systemd/user
mkdir_if_not_exist ~/.config/wal mkdir_if_not_exist ~/.config/wal
mkdir_if_not_exist ~/.config/weechat mkdir_if_not_exist ~/.config/weechat
mkdir_if_not_exist ~/.config/X11 mkdir_if_not_exist ~/.config/X11
mkdir_if_not_exist ~/.emacs.d
mkdir_if_not_exist ~/.gnupg mkdir_if_not_exist ~/.gnupg
mkdir_if_not_exist ~/.config/mpv/scripts mkdir_if_not_exist ~/.config/mpv/scripts
mkdir_if_not_exist ~/.config/coc/extensions mkdir_if_not_exist ~/.config/coc/extensions
mkdir_if_not_exist ~/.config/dmenu-frecency mkdir_if_not_exist ~/.config/dmenu-frecency
mkdir_if_not_exist ~/.config/doom mkdir_if_not_exist ~/.config/doom
mkdir_if_not_exist ~/.config/emacs
mkdir_if_not_exist ~/.config/sxhkd mkdir_if_not_exist ~/.config/sxhkd
mkdir_if_not_exist ~/.local/share/applications mkdir_if_not_exist ~/.local/share/applications

View File

@ -83,6 +83,9 @@ alias rm="rm -i"
# Colorize diff # Colorize diff
alias diff="diff --color" alias diff="diff --color"
# Doom Emacs alias
alias demacs="emacs --with-profile doom"
# Use lf to switch directories and bind it to ctrl-o # Use lf to switch directories and bind it to ctrl-o
lfcd() { lfcd() {
tmp="$(mktemp)" tmp="$(mktemp)"

View File

@ -10,7 +10,7 @@ TERM="xterm-256color"
# PATH # PATH
path_if_exists ~/.local/share/yarn/global/node_modules/.bin path_if_exists ~/.local/share/yarn/global/node_modules/.bin
path_if_exists ~/.local/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/go/bin
path_if_exists ~/.local/share/cargo/bin path_if_exists ~/.local/share/cargo/bin