[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Basic elisp question: bind key to function with arg
From: |
Tory S. Anderson |
Subject: |
Basic elisp question: bind key to function with arg |
Date: |
Sun, 25 Jan 2015 18:12:34 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
I have the following in my emacs init, and it works fine:
(global-set-key [C-up] 'enlarge-window)
(global-set-key [C-down] (lambda () (interactive)
(enlarge-window -1)))
But it seems awkward to me that I need to add all the extra just to pass a -1
arg to the function, so I'm suspecting there's a simpler way to write this. Any
tips?
- Basic elisp question: bind key to function with arg,
Tory S. Anderson <=