aboutsummaryrefslogtreecommitdiff
path: root/.config/i3
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-03-20 20:17:58 +0800
committerGuangxiong Lin <[email protected]>2022-03-20 20:17:58 +0800
commit8de88c174c10814e6b02a2b86114510ce0a02f87 (patch)
tree984f37b320da55b4ce6661897570f8696c9538c9 /.config/i3
parenteed961ffe2a4cc55c2762cde9159bc10d732d6f5 (diff)
downloaddotfiles-8de88c174c10814e6b02a2b86114510ce0a02f87.tar.gz
dotfiles-8de88c174c10814e6b02a2b86114510ce0a02f87.tar.bz2
dotfiles-8de88c174c10814e6b02a2b86114510ce0a02f87.zip
Use emacsclient in i3wm
Diffstat (limited to '.config/i3')
-rw-r--r--.config/i3/config8
1 files changed, 4 insertions, 4 deletions
diff --git a/.config/i3/config b/.config/i3/config
index 8c092e0..cc5d9fd 100644
--- a/.config/i3/config
+++ b/.config/i3/config
@@ -208,10 +208,10 @@ mode "$mode_system" {
bindsym $mod+Shift+c mode "$mode_system"
set $mode_launch Launch [e] emacs [a] org-agenda [c] org-capture [j] org-roam-dailies [w] webbrowser [m] mutt [n] newsboat
-set $org_agenda LC_CTYPE='zh_CN.UTF-8' emacs -f org-agenda -f delete-other-windows
-set $org_capture LC_CTYPE='zh_CN.UTF-8' emacs -f org-capture -f delete-other-windows
-set $org_roam_dailies LC_CTYPE='zh_CN.UTF-8' emacs -f org-roam-dailies-goto-today -f delete-other-windows
-set $Emacs LC_CTYPE='zh_CN.UTF-8' emacs
+set $org_agenda LC_CTYPE='zh_CN.UTF-8' ec -e '(org-agenda)'
+set $org_capture LC_CTYPE='zh_CN.UTF-8' ec -e '(org-capture)'
+set $org_roam_dailies LC_CTYPE='zh_CN.UTF-8' ec -e '(org-roam-dailies-goto-today)'
+set $Emacs LC_CTYPE='zh_CN.UTF-8' ec
mode "$mode_launch" {
bindsym e exec $Emacs, mode "default"
bindsym a exec $org_agenda, mode "default"