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

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

Re: the evil f11


From: Nick Dokos
Subject: Re: the evil f11
Date: Mon, 11 Apr 2016 13:38:38 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Uwe Brauer <address@hidden> writes:

> Hi
>
> I am completely puzzled by the following, for ages my emacs_keys.el file
> contained the line
>
> (global-set-key [(f11)]   'capitalize-word)
>
> However since some time (I cannot remember when)
>
> C-h k f11 gives
> ,----
> | <f11> runs the command toggle-frame-fullscreen (found in global-map),
> | which is an interactive compiled Lisp function in ‘frame.el’.
> | 
> | It is bound to <f11>.
> `----
>
> I usually have in my emacs init file the line
> (load-library "emacs_keys.el")
> or 
> (require 'emacs_keys)
>
> Even if I load it manually f11 is still bound to
> toggle-frame-fullscreen.
>
> Only when I enter the emacs_keys.el file
> and eval
> (global-set-key [(f11)]   'capitalize-word)
>
> Then everything is fine.
>
> I don't understand this because all the other binding is fine. It turns
> me crazy.
>
> Any help is strongly appreciated.
>

I don't know if it makes any difference, but my key definitions don't
have parens around the function key name:

--8<---------------cut here---------------start------------->8---
...
(setq f7-keymap (make-sparse-keymap))
(define-key global-map [f7] f7-keymap)
(define-key f7-keymap [f7] 'org-agenda-list)
(define-key f7-keymap "c" 'org-capture)
...
--8<---------------cut here---------------end--------------->8---

--
Nick




reply via email to

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