* [ELPA] New package: hook-helpers.el
@ 2016-06-12 18:57 Ian Dunn
0 siblings, 0 replies; only message in thread
From: Ian Dunn @ 2016-06-12 18:57 UTC (permalink / raw)
To: emacs-devel
As no one has made any other objections, I'll officially submit this to GNU ELPA.
It's currently maintained on Savannah, so I've included the patch for adding hook-helpers to the externals-list file. I apologize if I've done this incorrectly.
Official Description:
Often times, I see people define a function to be used once in a hook. If they don’t do this, then it will be an anonymous function. If the anonymous function is modified, then the function can’t be removed. With a function outside of the ‘add-hook’ call, it looks messy.
The ‘define-hook-helper’ macro is a solution to this. Think of it as an anaphoric ‘add-hook’, but one that can be called many times without risking redundant hook functions. It gives a cleaner look and feel to Emacs configuration files, and could even be used in actual libraries.
diff --git a/externals-list b/externals-list
index 169cb11..6876140 100644
--- a/externals-list
+++ b/externals-list
@@ -55,6 +55,7 @@
("ggtags" :subtree "https://github.com/leoliu/ggtags")
("gnome-c-style" :subtree "https://github.com/ueno/gnome-c-style.git")
("gnorb" :subtree "https://github.com/girzel/gnorb")
+ ("hook-helpers" :subtree "git://git.sv.gnu.org/hook-helpers-el.git")
("ioccur" :subtree "https://github.com/thierryvolpiatto/ioccur.git")
("js2-mode" :subtree "https://github.com/mooz/js2-mode.git")
("let-alist" :core "lisp/emacs-lisp/let-alist.el")
--
Ian Dunn
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-06-12 18:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-12 18:57 [ELPA] New package: hook-helpers.el Ian Dunn
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.