Questions tagged [keystrokes]

74 questions
19
votes
4 answers

Is there a mode for viewing keystroke lossage in realtime?

C-h l shows the lossage help buffer, which shows recent keystrokes. Pressing g appears to revert it, causing it to update. Unfortunately, enabling auto-revert-mode does not change it to update continuously. It would be nice if I could open up…
dgtized
  • 4,169
  • 20
  • 41
12
votes
9 answers

Typing quickly when Control, Alt and Esc are hard to reach

I'm very new to Emacs and I'm trying the built-in tutorial. After I went through the basics, I found it really hard to reach the Ctrl and Alt or Esc keys. I'm trying to type faster but since all the commands require these keys, I'm not able to be…
anonymous
  • 123
  • 1
  • 4
12
votes
1 answer

decrease time until "C-x-" shows in echo area after pressing the keys

When I try enter commands via C-x, it takes 1-2 seconds until the echo area shows this prefix key, as C-x-. I'm quite new to Emacs, so this often confuses me, and I get lost. The ESC key acts similar to this, so when I try to escape out of some…
kai-dj
  • 427
  • 2
  • 15
11
votes
1 answer

why doesn't emacs support key up/down events

AFAIK emacs does not support keyup/keydown events, only keypressed. An example of a consequence is that when we want to mark a region we have to first set a mark set-mark-command and can then mark the region by moving around the point. While this is…
shaft
  • 213
  • 1
  • 4
10
votes
1 answer

How to get keystrokes displayed in the echo area immediately?

How do I get keystrokes displayed in the echo area immediately? For example: when I enter the key sequence C-u j, it will not display in the echo area immediately, but then I press key k, and I discover that I was making a typo beforehand. So, I…
jimmy
  • 103
  • 5
9
votes
2 answers

Translating strings to keypresses

Given a string in elisp, I'd like to simulate emacs receiving whatever keypresses are necessary to re-create that string. So given the string "Hello" emacs would act exactly the same as if I had pressed Shift+H,e,l,l,o. Note that this is not always…
Joseph Garvin
  • 2,061
  • 8
  • 21
7
votes
2 answers

Is there a package that can bind S-S (shift-shift) to an interactive function?

IntelliJ has a keybind on a double-tap of Shift. I'm curious if Emacs can emulate this functionality - my first thought was key-chord.el, since it allows double taps of regular keys like qq. But, reading the key-chord.el documentation, it doesn't…
gempesaw
  • 173
  • 3
7
votes
4 answers

press keystroke sequence with elisp

I just installed debian 8 and emacs24. I noticed a new feature! you now can push F11 to enter fullscreen mode. I wanted to put emacs on fullscreen mode at startup, but couldn't find the command... and then I though that it would be easier tell emacs…
Bengalaa
  • 71
  • 2
6
votes
2 answers

Insert multiple minus ('-') characters using the universal argument (C-u)

I was manually creating a table in my source code's multiline comments and inserting horizontal separators using - and =. E.g. C-u C-u C-u = as expected and inserts 64 =s at the point. But - is used to provide negative arguments and does not work in…
loonatick
  • 217
  • 1
  • 5
6
votes
2 answers

A function which acts differently depending on the last keystroke

I would like to define a function which behaves differently depending on the last keystroke. More specifically I would like that it behaves differently if the last keystroke (before the execution of that function) has been . Like below (defun…
Name
  • 7,689
  • 4
  • 38
  • 84
5
votes
1 answer

How to repeat the last n keystrokes?

As described here, by C-x z, I can repeat my last keystroke. How can I repeat my last n keystrokes?
Name
  • 7,689
  • 4
  • 38
  • 84
5
votes
2 answers

How to play back an edit session in emacs?

The book Clean code says emacs can play back an edit session (page 13): You could work for an hour and then play back your whole edit session like a high-speed movie. When I did this, the results were fascinating. The vast majority of the playback…
Alaneuler
  • 277
  • 1
  • 8
5
votes
1 answer

C-) not recognized on Windows 10

In my init file, I have C-) bound to a smartparens "slurp" command. This works great on linux, but when I try to use the same keybinding on my Windows machine, nothing happens. To troubleshoot on my Windows machine, I've tried C-h c followed by…
achalk
  • 579
  • 4
  • 16
5
votes
1 answer

How to use the Insert key to toggle `overwrite-mode` when using a PC keyboard in OS X?

By default, when using a PC keyboard attached to a Mac, OS X treats presses of the Insert key as presses of the Help key that appears on the extended Mac keyboard. How do I map that keypress to have the same result in GNU Emacs that it does when…
WalterGR
  • 203
  • 1
  • 11
5
votes
1 answer

log keystrokes with timestamp and other metadata?

If I evaluate this form: (open-dribble-file "/home/joe/keys.log") then type something, Emacs saves what I type to the keys.log file: hellow keylogging…
Joe Corneli
  • 1,786
  • 1
  • 14
  • 27
1
2 3 4 5