diff options
author | Yuchen Pei <id@ypei.org> | 2023-08-19 22:08:41 +1000 |
---|---|---|
committer | Yuchen Pei <id@ypei.org> | 2023-08-19 22:08:41 +1000 |
commit | ad4f5144f884f1f10d95dcb9e8ee6962c704341e (patch) | |
tree | 0aefbc99493c748680733568576de4a948e90562 /emacs/.emacs.d/lisp/my | |
parent | 851b8f5fac389364c579aabb8e8fba344a3f6929 (diff) |
some tweaks in org
Diffstat (limited to 'emacs/.emacs.d/lisp/my')
-rw-r--r-- | emacs/.emacs.d/lisp/my/my-org.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/emacs/.emacs.d/lisp/my/my-org.el b/emacs/.emacs.d/lisp/my/my-org.el index 63db9fa..1b99dc5 100644 --- a/emacs/.emacs.d/lisp/my/my-org.el +++ b/emacs/.emacs.d/lisp/my/my-org.el @@ -75,6 +75,10 @@ With a prefix, insert inactive dates. (when (eq major-mode 'mhtml-mode) (browse-url-of-buffer))) +(defun my-org-edit-src-before-exit () + "A :before advice for org-edit-src-exit." + (delete-trailing-whitespace)) + ;; navigation (defun my-org-jump-to-last-visible-child () "Goto the last visible child." |