18 May 2013 21:45
Re: How to get hook var of the current major mode?
Emanuel Berg <embe8573 <at> student.uu.se>
2013-05-18 19:45:02 GMT
2013-05-18 19:45:02 GMT
Dmitry Gutov <dgutov <at> yandex.ru> writes: >> I want to do somthing like this: >> (let ((hook (get--the--current--major--mode--hook))) >> (add-hook hook (lambda () >> (setq truncate-lines t)))) > > ...And if the above form is run many times, each time a new lambda > will be added to the hook. When the hook fires, are all those lambda executed (doing the same thing)? -- -- Emanuel Berg - programmer (hire me! CV below) computer projects: http://user.it.uu.se/~embe8573 internet activity: http://home.student.uu.se/embe8573
RSS Feed