diff options
author | Amin Bandali <bandali@gnu.org> | 2019-10-30 12:49:10 -0400 |
---|---|---|
committer | Amin Bandali <bandali@gnu.org> | 2019-10-30 12:49:10 -0400 |
commit | bc2f85e135e574e447729b37c25f73673e27c9b5 (patch) | |
tree | db7cae6fc01f2b33f46ff4d4ebabb7a1dcd01ccf | |
parent | 50f891928442f048d2e524366aa9578e09ba1885 (diff) | |
download | configs-bc2f85e135e574e447729b37c25f73673e27c9b5.tar.gz configs-bc2f85e135e574e447729b37c25f73673e27c9b5.tar.xz configs-bc2f85e135e574e447729b37c25f73673e27c9b5.zip |
emacs: (defun b/insert-asterism () …)
-rw-r--r-- | .emacs.d/init.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el index f60c736..571448e 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -266,6 +266,10 @@ (previous-line) (insert "\n\n;;; ")) +(defun b/insert-asterism () + (interactive) + (insert "\n\n * * *\n\n")) + (defun b/no-mouse-autoselect-window () "Conveniently disable `focus-follows-mouse'. For disabling the behaviour for certain buffers and/or modes." @@ -1239,6 +1243,7 @@ This function is intended for use with `ivy-ignore-buffers'." (add-hook 'prog-mode-hook #'indicate-buffer-boundaries-left)) (use-feature text-mode + :bind (:map text-mode-map ("C-*" . b/insert-asterism)) :hook (text-mode . indicate-buffer-boundaries-left)) (use-feature conf-mode @@ -2408,6 +2413,7 @@ https://csclub.uwaterloo.ca/~abandali") mail-envelope-from 'header)) (use-feature message + :bind (:map message-mode-map ("<C-return>" . b/insert-asterism)) :config ;; redefine for a simplified In-Reply-To header ;; (see https://todo.sr.ht/~sircmpwn/lists.sr.ht/67) |