From: weemattisnot <mde@rhthm.com>
To: Help-gnu-emacs@gnu.org
Subject: Bug, or newbie error?
Date: Fri, 1 Jul 2011 10:23:27 -0700 (PDT) [thread overview]
Message-ID: <31975451.post@talk.nabble.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 938 bytes --]
I am trying to write a bit of lisp to go in my .emacs file that binds C-1 to
a command to change the color of the selected text (in enriched text
minor-mode).
I have success running the command M-x facemenu-set-foreground where I am
prompted for a color, I type red, and it changes the selected region red.
But, when I try to bind this command to a key-press, it doesn't work
correctly, changing the color of the text at the very end of the document
(such that if I add any text at the end of the document, it will be red).
Here is my .emacs lisp
(defun headingone ()
(interactive)
(facemenu-set-foreground "red")
)
(global-set-key (kbd "C-1") 'headingone)
Have I done something wrong here? Any suggestions are welcome. Thank you
in advance.
Weemattisnot
--
View this message in context: http://old.nabble.com/Bug%2C-or-newbie-error--tp31975451p31975451.html
Sent from the Emacs - Help mailing list archive at Nabble.com.
[-- Attachment #2: Type: text/html, Size: 1079 bytes --]
next reply other threads:[~2011-07-01 17:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-01 17:23 weemattisnot [this message]
2011-07-02 0:36 ` Bug, or newbie error? Eric Abrahamsen
2011-07-06 16:24 ` weemattisnot
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=31975451.post@talk.nabble.com \
--to=mde@rhthm.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.