all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: the evil f11
Date: Mon, 11 Apr 2016 13:38:38 -0400	[thread overview]
Message-ID: <8737qs11wh.fsf@alphaville.usersys.redhat.com> (raw)
In-Reply-To: 8737qsjcr8.fsf@mat.ucm.es

Uwe Brauer <oub@mat.ucm.es> 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	other threads:[~2016-04-11 17:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-11 17:06 the evil f11 Uwe Brauer
2016-04-11 17:38 ` Nick Dokos [this message]
2016-04-11 18:05   ` Uwe Brauer
2016-04-11 19:25     ` Eli Zaretskii
2016-04-11 19:55       ` Uwe Brauer
2016-04-12  9:28       ` Uwe Brauer

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=8737qs11wh.fsf@alphaville.usersys.redhat.com \
    --to=ndokos@gmail.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.