help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mode hooks WAS: icicles lisp-mode dabbrev-completion


From: Kevin Rodgers
Subject: Re: Mode hooks WAS: icicles lisp-mode dabbrev-completion
Date: Mon, 19 Dec 2005 14:56:00 -0700
User-agent: Mozilla Thunderbird 0.9 (X11/20041105)

Emabela wrote:
>  During a correspondence with Drew Adams, who
>  helped me very much, I simplified the to the following situation:
>
>  Bind tab to beginning-of-line in lisp-mode.
>
>  Hence, in my first test I used the following very short .emacs:
>  (defun my-lisp-addons ()
>  (progn
>  (print "my-lisp-addons is running")
>  (local-unset-key "\t")
>  (local-set-key [(tab)] 'beginning-of-line)))
>  (add-hook 'lisp-mode-hook 'my-lisp-addons)
>
>  If I start: emacs --debug-init /tmp/some.el,
>  then the buffer is in lisp-mode,

No, the buffer is in emacs-lisp-mode (C-h v major-mode).

>  but my-lisp-addons does not run.
>
>  The same, if I open /tmp/some.el with C-x C-f.
>
>  But if I type in M-x lisp-mode, then it works, of course.

Naturally.

--
Kevin Rodgers





reply via email to

[Prev in Thread] Current Thread [Next in Thread]