all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to get hook var of the current major mode?
@ 2013-05-18  9:48 netjunegg2
  2013-05-18 13:38 ` Dmitry Gutov
       [not found] ` <mailman.32.1368884325.22516.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 6+ messages in thread
From: netjunegg2 @ 2013-05-18  9:48 UTC (permalink / raw)
  To: help-gnu-emacs

I want to do somthing like this:
(let ((hook (get--the--current--major--mode--hook)))
   (add-hook hook (lambda ()
                    (setq truncate-lines t))))




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

end of thread, other threads:[~2013-05-19  9:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.17.1368841736.22516.help-gnu-emacs@gnu.org>
2013-05-18  2:52 ` How to get hook var of the current major mode? Emanuel Berg
2013-05-18  9:48 netjunegg2
2013-05-18 13:38 ` Dmitry Gutov
2013-05-19  9:52   ` Jun
     [not found] ` <mailman.32.1368884325.22516.help-gnu-emacs@gnu.org>
2013-05-18 19:45   ` Emanuel Berg
2013-05-18 20:38     ` Dmitry Gutov

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.