diff options
author | Yuchen Pei <id@ypei.org> | 2023-06-26 15:17:20 +1000 |
---|---|---|
committer | Yuchen Pei <id@ypei.org> | 2023-06-26 15:17:20 +1000 |
commit | ea1e815c3dc1781aa5cb6d401e233c73fa8a108b (patch) | |
tree | 189aa1cc44277f5c298eed5230c4ae2784fafeec /emacs/.emacs.d/lisp/my/my-utils.el | |
parent | f77444c030038100908e298666f8f84f85e768cb (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.el | 5 |
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) |