unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* mutate list by appending a list (and similar for props)
@ 2014-09-08 18:42 Sam Halliday
  2014-09-08 19:29 ` Barry Margolin
  0 siblings, 1 reply; 8+ messages in thread
From: Sam Halliday @ 2014-09-08 18:42 UTC (permalink / raw)
  To: help-gnu-emacs

Hi all,

I often find that I am repeating calls to add-to-list (mutates) / plist-put (immutable) in my .emacs [1] configuration against the same variable. I'd like to be able to pass a list of elements to be appended/prepended to the variable to save on boilerplate.

It would be trivial to write a little function that repeats the operation for a list input, but I'd rather use something that is already in the emacs distro (or at least in a very lightweight MELPA package).

Does such a thing exist?


[1] https://github.com/fommil/unix/blob/master/.emacs

Best regards,
Sam


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-09-18 23:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-08 18:42 mutate list by appending a list (and similar for props) Sam Halliday
2014-09-08 19:29 ` Barry Margolin
2014-09-18  9:37   ` Sam Halliday
2014-09-18  9:42     ` Sam Halliday
2014-09-18  9:44       ` Sam Halliday
2014-09-18 10:10     ` Michael Heerdegen
     [not found]     ` <mailman.9095.1411035073.1147.help-gnu-emacs@gnu.org>
2014-09-18 16:53       ` Pascal J. Bourguignon
2014-09-18 23:44         ` Stefan Monnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).