Can I bind action to a keypress in Emacs?

eush77

I have (kbd "C-c S-<down>") and (kbd "C-c S-<up>") bound to shrink-window and enlarge-window, respectively.

It works, but I also want Emacs to change window size during a keypress, while I am holding S-<down> or S-<up>.

Is it possible in Emacs?

lawlist
(define-key global-map [S-up] 'enlarge-window)

(define-key global-map [S-down] 'shrink-window)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How can i make a keypress action to this code?

How can I get Knockout JS to data-bind on keypress instead of lost-focus?

How can I set a certain keycode to a key and bind it to the right action?

In an action method, how can I bind post data to a dynamic object?

How can I simulate a keypress in JavaScript?

how can i mute an iframe on keypress

Bind bash script to keypress

jQuery bind on keypress not firing

React-Redux: What is the canonical way to bind a keypress action to kick off a reducer sequence?

How can I execute action after data-bind in Angular 2?

How can I call a already defined function on keypress?

Why can't I detect keypress while player is on top of chest

How can I position my cursor in an input field based on a keypress?

How can I pass a keypress value to a function, through an event listener?

How can I use keypress and prompt libraries same time?

How can I broadcast and pick up a keypress event in AngularJS?

How can I get jquery .val() AFTER keypress event?

How can I listen for keypress event on the whole page?

How can I use python xlib to generate a single keypress?

I can not find KeyPress event handler in c#

How can I fire the Tab keypress when the Enter key is pressed?

Where can I find documentation of the 'keypress' event in Node.js

How can i count the number of keypress in the background in C#

How can I get around a keypress requirement on a javascript textbox?

How can I cause a synthetic autoshift keypress in QMK (for the Moonlander)?

tkinter - bind keypress event to label

Bind keypress event to ListViewItem in WPF

Python tkinter bind hover and keypress

How to bind a luafunction to keypress in vim