Search found 9 matches
- Fri Jan 01, 2010 2:21 pm
- Forum: Emacs Lisp
- Topic: name of local mode's keymap
- Replies: 6
- Views: 19119
Re: name of local mode's keymap
Paul, As it suggests in the manual, most local modes have named keymaps: http://www.gnu.org/software/emacs/manual/html_node/emacs/Local-Keymaps.html As does the mew mode for sending messages that i am using. Unfortunately, I cannot find a function on my emacs for displaying the name of the local key...
- Thu Dec 31, 2009 11:52 am
- Forum: Emacs Lisp
- Topic: name of local mode's keymap
- Replies: 6
- Views: 19119
Re: name of local mode's keymap
@gugamilare.
I don't want to set a global key. I only want my functions to be part of the local mode map for mew (my mailing program). As I just shared above I found out how to do it. However, I am still clueless where to find the name of a given mode's keymap
I don't want to set a global key. I only want my functions to be part of the local mode map for mew (my mailing program). As I just shared above I found out how to do it. However, I am still clueless where to find the name of a given mode's keymap

- Thu Dec 31, 2009 11:48 am
- Forum: Emacs Lisp
- Topic: name of local mode's keymap
- Replies: 6
- Views: 19119
Re: name of local mode's keymap
I have figured out how to set a local mode's keybinding using a hook while not knowing the keymaps name **see: http://www.io.com/~jimm/emacs_tips.html It still bugs me though, not being able to easily access something so fundamental :? (setq mew-summary-mode-hook '(lambda () (local-set-key "\C-...
- Wed Dec 30, 2009 5:13 pm
- Forum: Emacs Lisp
- Topic: name of local mode's keymap
- Replies: 6
- Views: 19119
name of local mode's keymap
I am unable to set key-bindings for a local mode (mew - mail program), b/c i do not know the name of the mode's keymap. I have tried looking at the 'current-local-map' variable, but just see the whole keymap in the minibuffer. Also looked at functions: current-active-maps, accessible-keymaps , but t...
- Wed Dec 30, 2009 8:43 am
- Forum: Emacs Lisp
- Topic: script to set variables based on user input
- Replies: 2
- Views: 9079
Re: script to set variables based on user input
Great, thanks for the advice! made the changes and works fine. here's the code now in my .mew.el file in case anyone wants to use it for themselves: ;; Optional setup (Read Mail menu for Emacs 21): (if (boundp 'read-mail-command) (setq read-mail-command 'mew)) ;; Optional setup (e.g. C-xm for sendin...
- Tue Dec 29, 2009 6:42 pm
- Forum: Emacs Lisp
- Topic: script to set variables based on user input
- Replies: 2
- Views: 9079
script to set variables based on user input
I am using the mew email reader in emacs. The reader accesses your pop accounts based on lisp variables you set in its configuration file. I am trying to write an interactive function which will set these variables based on user input (e.g. type 'y' for yahoo account, 'm' for msn, etc...) When I run...
- Thu Dec 17, 2009 8:46 am
- Forum: Emacs Lisp
- Topic: exercise database
- Replies: 0
- Views: 6478
exercise database
I am toying around creating a simple exercise database using emacs forms mode. My control file looks something like this: (setq forms-file "datafile") (setq forms-number-of-fields 6) (setq forms-format-list (list "----Exercise Database----\n\n" "exercise : " 1 "\n\...
- Thu Nov 26, 2009 11:17 am
- Forum: Emacs Lisp
- Topic: buffer name as variable
- Replies: 4
- Views: 12738
Re: buffer name as variable
Yes, those are some needed changes, but the function still does not work. If for example I type:
(buf-exists *scratch*)
and try to evaluate, I get the error (void-variable *scratch*)
(buf-exists *scratch*)
and try to evaluate, I get the error (void-variable *scratch*)
- Sun Nov 22, 2009 11:57 am
- Forum: Emacs Lisp
- Topic: buffer name as variable
- Replies: 4
- Views: 12738
buffer name as variable
I am working through the FSF text: An Introduction to Programming in Emacs Lisp. I am having some trouble with the following buffer exercise: Use if and get-buffer to write a function that prints a message telling you whether a buffer exists. Here is the program I wrote: (defun buf-exists (bufpos) &...