all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Can one modify a variable definition in a major mode depending on buffer name?
@ 2016-07-30 12:54 Tom Browder
  2016-07-30 14:26 ` Emanuel Berg
  2016-07-30 17:37 ` Stefan Monnier
  0 siblings, 2 replies; 12+ messages in thread
From: Tom Browder @ 2016-07-30 12:54 UTC (permalink / raw)
  To: help-gnu-emacs

I think I can do that, with some experimentation, but can anyone confirm
that it's reasonably possible?

My use case is modifying our perl6-mode for the slight difference in
allowable identifiers between Perl 6 and NQP (Not Quite Perl).  By
convention, nqp files end in ".nqp" so that the buffer name should be a
good way to automatically change the single regex bound to a var name in
the mode file.  That would save having to write another major mode just for
such a small change.

Thanks.

Best regards,

-Tom


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

end of thread, other threads:[~2016-08-02  1:35 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-30 12:54 Can one modify a variable definition in a major mode depending on buffer name? Tom Browder
2016-07-30 14:26 ` Emanuel Berg
2016-07-30 16:22   ` Tom Browder
2016-07-30 17:00     ` Emanuel Berg
2016-07-30 17:28       ` Tom Browder
2016-07-30 16:37   ` John Mastro
2016-07-30 17:33     ` Tom Browder
2016-07-30 17:37 ` Stefan Monnier
2016-07-30 17:48   ` Tom Browder
2016-07-30 17:48   ` Tom Browder
2016-08-02  1:28     ` Michael Heerdegen
2016-08-02  1:35       ` Tom Browder

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.