aboutsummaryrefslogtreecommitdiff
path: root/emacs/.emacs.d/lisp/my
diff options
context:
space:
mode:
authorYuchen Pei <id@ypei.org>2023-08-19 22:08:41 +1000
committerYuchen Pei <id@ypei.org>2023-08-19 22:08:41 +1000
commitad4f5144f884f1f10d95dcb9e8ee6962c704341e (patch)
tree0aefbc99493c748680733568576de4a948e90562 /emacs/.emacs.d/lisp/my
parent851b8f5fac389364c579aabb8e8fba344a3f6929 (diff)
some tweaks in org
Diffstat (limited to 'emacs/.emacs.d/lisp/my')
-rw-r--r--emacs/.emacs.d/lisp/my/my-org.el4
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."