diff options
-rw-r--r-- | .emacs.d/init.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 54265ecb..cff1a4d1 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -2472,6 +2472,15 @@ Called by '~/src/dotfiles/bin/emacsclient --spw/update-environment'." (user-error "Not at beginning of a sexp"))) (define-key spw/ctl-z-map "l" #'spw/copy-to-scratch) +(defun spw/org-title () + (interactive) + (goto-char (point-min)) + (if (search-forward "#+title: " nil t) + (move-end-of-line 1) + (unless (eolp) (open-line 1)) + (insert "#+title: "))) +(spw/feature-define-keys org "\C-z\C-t" spw/org-title) + ;;;; Terminal emulation |