From: Emanuel Berg <moasen@zoho.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Toggle WikiLink on and off does not work?
Date: Wed, 16 Aug 2017 17:32:23 +0200 [thread overview]
Message-ID: <861soby1dk.fsf@zoho.com> (raw)
In-Reply-To: 86valnzhwa.fsf@zoho.com
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
next prev parent reply other threads:[~2017-08-16 15:32 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-16 8:55 Toggle WikiLink on and off does not work? Csányi Pál
2017-08-16 14:50 ` Emanuel Berg
2017-08-16 15:32 ` Emanuel Berg [this message]
2017-08-17 8:17 ` Csányi Pál
2017-08-17 11:42 ` Emanuel Berg
2017-08-17 18:53 ` Csányi Pál
2017-08-17 21:12 ` Emanuel Berg
2017-08-18 5:06 ` Csányi Pál
2017-08-19 14:13 ` Emanuel Berg
2017-08-19 14:41 ` Csányi Pál
2017-08-19 14:52 ` Emanuel Berg
2017-08-19 15:15 ` Csányi Pál
2017-08-17 11:54 ` Emanuel Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=861soby1dk.fsf@zoho.com \
--to=moasen@zoho.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.