sawyl: (Default)
[personal profile] sawyl
Having had a few recent problems with my right-hand little finger, probably thanks to my tendency to smack the return key in frustration, I've decided to give the Dvorak keyboard layout a go. Luckily, I've found a neat emacs hack that makes life a whole lot easier.

Basically, the trick involves defining a function that remaps qwerty input into dvorak and then using this to define a minor mode keymap which switches the input:

(defun dvorak-insert () "Translate typed key into Dvorak keyboard." (interactive) (progn (cond ((= last-command-char ?m) (insert "a")) ((= last-command-char ?q) (insert "'")) ((= last-command-char ?w) (insert ",")) ... ))) (define-minor-mode dvorak-mode "Toggle Dvorak keyboard mode." nil " Dvorak" '(("q" . dvorak-insert) ("w" . dvorak-insert) ... ))

And that's pretty much it. The super neat thing about it is that because it's a minor mode, it only applies to current buffer, so there's no need to relearn all the C-M-coke-bottle sequences.

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

sawyl: (Default)
sawyl

August 2018

S M T W T F S
   123 4
5 6 7 8910 11
12131415161718
192021222324 25
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 5th, 2026 12:53 pm
Powered by Dreamwidth Studios