aboutsummaryrefslogtreecommitdiff
path: root/emacs/.emacs.d/lisp/my/my-package.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-package.el
parentf77444c030038100908e298666f8f84f85e768cb (diff)
Adapted more configs from other emacs configs
Including wasamasa and jwiegley
Diffstat (limited to 'emacs/.emacs.d/lisp/my/my-package.el')
-rw-r--r--emacs/.emacs.d/lisp/my/my-package.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/emacs/.emacs.d/lisp/my/my-package.el b/emacs/.emacs.d/lisp/my/my-package.el
index 1f35a5e..da4ff6f 100644
--- a/emacs/.emacs.d/lisp/my/my-package.el
+++ b/emacs/.emacs.d/lisp/my/my-package.el
@@ -3,8 +3,6 @@
;; Copyright (C) 2023 Free Software Foundation.
;; Author: Yuchen Pei <id@ypei.org>
-;; Protesilaos Stavrou <info@protesilaos.com>
-;; Maintainer: Yuchen Pei <id@ypei.org>
;; Package-Requires: ((emacs "28.2"))
;; This file is part of dotfiles.
@@ -259,5 +257,10 @@ same name, cancel that one first."
(t (append (my-collect-my-setqd-vars (car xs))
(my-collect-my-setqd-vars (cdr xs))))))
+(defsubst my-add-hooks (function hooks)
+ "Add function to hooks"
+ (dolist (hook hooks)
+ (add-hook hook function)))
+
(provide 'my-package)
;;; my-package.el ends here