replace neovim with terminal emacs
This commit is contained in:
parent
2f6245a13a
commit
3ac2f3f9c1
|
@ -14,7 +14,7 @@ export PATH="$PATH:$HOME/.emacs.d/bin"
|
|||
unsetopt PROMPT_SP
|
||||
|
||||
# Default programs:
|
||||
export EDITOR="nvim"
|
||||
export EDITOR="emnw"
|
||||
export TERMINAL="foot"
|
||||
export BROWSER="librewolf"
|
||||
|
||||
|
|
|
@ -144,14 +144,14 @@ bindsym $mod+F1 exec $term -e $editor ~/.config/sway/config
|
|||
bindsym $mod+w exec $browser
|
||||
|
||||
# agenda
|
||||
bindsym $mod+c exec emacsclient -c --eval '(org-agenda-list)'
|
||||
bindsym $mod+c exec $term -e $editor --eval '(org-agenda-list)'
|
||||
|
||||
# diary
|
||||
bindsym $mod+Control+n exec emacsclient -c --eval '(org-journal-new-entry 1)'
|
||||
bindsym $mod+Control+n $term -e $editor --eval '(org-journal-new-entry 1)'
|
||||
|
||||
# notebook
|
||||
bindsym $mod+n exec emacsclient -c -a emacs ~/notebook/index.org
|
||||
bindsym $mod+Control+r exec emacsclient -c -a emacs ~/notebook/refile.org
|
||||
bindsym $mod+n exec $term -e $editor ~/notebook/index.org
|
||||
bindsym $mod+Control+r $term -e $editor ~/notebook/refile.org
|
||||
|
||||
# newsboat (rss)
|
||||
bindsym $mod+Shift+n exec $term -e newsboat
|
||||
|
@ -163,7 +163,8 @@ bindsym $mod+Shift+t exec $term -e swaync-client -t
|
|||
bindsym $mod+r exec $term -e lf
|
||||
|
||||
# emacs
|
||||
bindsym $mod+e exec emacsclient --create-frame --alternate-editor=emacs
|
||||
bindsym $mod+e exec $term -e $editor
|
||||
bindsym $mod+Shift+e exec em
|
||||
|
||||
# mail
|
||||
#bindsym $mod+e exec $term -e neomutt
|
||||
|
@ -172,7 +173,7 @@ bindsym $mod+e exec emacsclient --create-frame --alternate-editor=emacs
|
|||
bindsym $mod+x exec start-tasks
|
||||
|
||||
# bookmarks
|
||||
bindsym $mod+b exec emacsclient --create-frame --alternate-editor=emacs ~/notebook/bookmarks.org
|
||||
bindsym $mod+b exec $term -e $editor ~/notebook/bookmarks.org
|
||||
bindsym $mod+shift+b exec bookmark
|
||||
bindsym $mod+Insert exec ydotool type "$(grep -v '^#' ~/notebook/bookmarks/bookmarks.org | dmenu -l 50 | cut -d' ' -f1)"
|
||||
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
setsid -f emacsclient --create-frame --alternate-editor='emacs' $@ >/dev/null 2>&1
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
emacsclient -nw -c --alternate-editor='emacs -nw' $@
|
Loading…
Reference in New Issue