aboutsummaryrefslogtreecommitdiff
path: root/emacs/.emacs.d/lisp/my/my-utils.el
diff options
context:
space:
mode:
authorYuchen Pei <id@ypei.org>2023-06-26 15:17:20 +1000
committerYuchen Pei <id@ypei.org>2023-06-26 15:17:20 +1000
commitea1e815c3dc1781aa5cb6d401e233c73fa8a108b (patch)
tree189aa1cc44277f5c298eed5230c4ae2784fafeec /emacs/.emacs.d/lisp/my/my-utils.el
parentf77444c030038100908e298666f8f84f85e768cb (diff)
Adapted more configs from other emacs configs
Including wasamasa and jwiegley
Diffstat (limited to 'emacs/.emacs.d/lisp/my/my-utils.el')
-rw-r--r--emacs/.emacs.d/lisp/my/my-utils.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/emacs/.emacs.d/lisp/my/my-utils.el b/emacs/.emacs.d/lisp/my/my-utils.el
index 7f36fae..fcaba11 100644
--- a/emacs/.emacs.d/lisp/my/my-utils.el
+++ b/emacs/.emacs.d/lisp/my/my-utils.el
@@ -406,4 +406,9 @@ With optional N, search in the Nth line from point."
(looking-at
(alist-get type my--line-regexp-alist))))))
+(defun my-quit-emacs (arg)
+ (interactive "P")
+ (save-some-buffers t t)
+ (kill-emacs))
+
(provide 'my-utils)