[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Toggle WikiLink on and off does not work?
From: |
Emanuel Berg |
Subject: |
Re: Toggle WikiLink on and off does not work? |
Date: |
Wed, 16 Aug 2017 17:32:23 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
Emanuel Berg wrote:
>> (add-hook 'emacs-wiki-mode-hook '(lambda ()
>> (local-set-key "\C-c\C-n"
>> 'emacs-wiki-unlink-toggle))) but in Wiki
>> mode I can't toggle on or off
>> a WikiLink. Why?
>
> You don't need a lambda here (and they need not
> be quoted). You can put a # before the
> function quote.
... maybe you *do* need a lambda here? Just not
quoted? It seems the form is evaluated. Anyway,
the other suggestion is still better, faster
and more reliable, than to use hooks. If you
still want hooks, here is a construct that
makes it more orderly:
;; (setq text-mode-hook nil)
(defun text-mode-hook-f ()
(auto-fill-mode)
(abbrev-mode) )
(add-hook 'text-mode-hook #'text-mode-hook-f)
--
underground experts united
http://user.it.uu.se/~embe8573
- Toggle WikiLink on and off does not work?, Csányi Pál, 2017/08/16
- Re: Toggle WikiLink on and off does not work?, Emanuel Berg, 2017/08/16
- Re: Toggle WikiLink on and off does not work?,
Emanuel Berg <=
- Re: Toggle WikiLink on and off does not work?, Csányi Pál, 2017/08/17
- Re: Toggle WikiLink on and off does not work?, Emanuel Berg, 2017/08/17
- Re: Toggle WikiLink on and off does not work?, Csányi Pál, 2017/08/17
- Re: Toggle WikiLink on and off does not work?, Emanuel Berg, 2017/08/17
- Re: Toggle WikiLink on and off does not work?, Csányi Pál, 2017/08/18
- Re: Toggle WikiLink on and off does not work?, Emanuel Berg, 2017/08/19
- Re: Toggle WikiLink on and off does not work?, Csányi Pál, 2017/08/19
- Re: Toggle WikiLink on and off does not work?, Emanuel Berg, 2017/08/19
- Re: Toggle WikiLink on and off does not work?, Csányi Pál, 2017/08/19
- Re: Toggle WikiLink on and off does not work?, Emanuel Berg, 2017/08/17