diff options
author | Matthew Lemon <y@yulqen.org> | 2023-09-13 15:31:35 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2023-09-13 15:31:35 +0100 |
commit | bf27fe1b394103ef08f6fe233c63373405f546ac (patch) | |
tree | 6af9dd92eba62434d167276964ee58b7e25de118 | |
parent | 78a64833e0c152c31f1b8eda2c2d42e5319a6e24 (diff) |
Spelling, new org tag, dictionary and emacs daemon
Creates a new function to shutdown the server, adds config for
spelling and dictionary usage.
-rw-r--r-- | init.el | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -16,6 +16,13 @@ ;; (setq shell-file-name "bash") ;; (setq shell-command-switch "-i") +;; define function to shutdown emacs server instance +;; or from outside emacs, do emacsclient -e '(kill-emacs)' +(defun server-shutdown () + "Save buffers, Quit, and Shutdown (kill) server" + (interactive) + (save-some-buffers) + (kill-emacs)) ;; timestamps ;; from: https://gist.github.com/takehiko/306021460b21f5d1520c32293cd831e0 @@ -99,6 +106,9 @@ Restart works only on graphic display." (add-to-list 'load-path "~/.config/emacs/lisp") (require 'mrl-functions) +;; dictionary +(global-set-key (kbd "M-#") #'dictionary-lookup-definition) + (require 'org-notmuch) (org-link-set-parameters "notmuch" :follow 'org-notmuch-open @@ -137,8 +147,11 @@ Restart works only on graphic display." (add-hook 'org-mode-hook 'visual-line-mode) + ;; turn off flycheck-mode (add-hook 'org-mode-hook (lambda () flycheck-mode -1)) +;; but turn on spelling +(add-hook 'org-mode-hook 'flyspell-mode) ;; ID basics (setq user-full-name "Matthew Lemon" @@ -1431,6 +1444,7 @@ If failed try to complete the common part with `company-complete-common'" (setq org-tag-alist '( ("brainstorm" . ?b) ("idea" . ?d) + ("current" . ?C) ("work" . ?w) ("baes" . ?B) ("rrdl" . ?r) |