aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-11-07 09:57:15 +0800
committerGuangxiong Lin <[email protected]>2022-11-07 09:57:29 +0800
commitdadc0f8b563c32ff57df7a4ec5bb16387368be9f (patch)
treec84918b3c05e1c7918ac0da3ae6cfc486d14dade
parent85e6312355cfb8a0f1774a05b1e671bc89a97235 (diff)
downloaddotfiles-dadc0f8b563c32ff57df7a4ec5bb16387368be9f.tar.gz
dotfiles-dadc0f8b563c32ff57df7a4ec5bb16387368be9f.tar.bz2
dotfiles-dadc0f8b563c32ff57df7a4ec5bb16387368be9f.zip
Update emacs config
-rw-r--r--.emacs.d/.gitignore2
-rw-r--r--.emacs.d/lisp/init-company.el1
-rwxr-xr-xbin/ek6
3 files changed, 6 insertions, 3 deletions
diff --git a/.emacs.d/.gitignore b/.emacs.d/.gitignore
index 479677f..52517f8 100644
--- a/.emacs.d/.gitignore
+++ b/.emacs.d/.gitignore
@@ -19,3 +19,5 @@ history
projects
eln-cache
places
+
+local
diff --git a/.emacs.d/lisp/init-company.el b/.emacs.d/lisp/init-company.el
index 06ff700..c1e7414 100644
--- a/.emacs.d/lisp/init-company.el
+++ b/.emacs.d/lisp/init-company.el
@@ -1,4 +1,5 @@
(when (gx/maybe-require-package 'company)
+ (add-hook 'org-mode-hook #'gx/company-mode-in-tui)
(add-hook 'ledger-mode-hook #'gx/company-mode-in-tui)
(add-hook 'prog-mode-hook #'gx/company-mode-in-tui))
diff --git a/bin/ek b/bin/ek
index 4420327..a4a9efe 100755
--- a/bin/ek
+++ b/bin/ek
@@ -1,11 +1,11 @@
#!/usr/bin/env bash
server_running () {
- emacsclient -a "false" -e "(boundp 'server-process)"
+ emacsclient -a "false" -e "(boundp 'server-process)" "$@"
}
-if [ "t" == "$(server_running)" ]; then
- emacsclient -e '(kill-emacs)'
+if [ "t" == "$(server_running "$@")" ]; then
+ emacsclient -e '(kill-emacs)' "$@"
echo "Emacs server is killed"
else
echo "Emacs server is not running"