/modern.el

Modern Emacs keybindings

Primary LanguageEmacs Lisp

modern.el

Replace Emacs's default shortcuts with modern ones.

Installation

Clone this repository:

cd ~/.emacs.d
mkdir -p lisp
cd lisp
git clone https://github.com/jacksonrayhamilton/modern.el.git

Add the following to your init file:

(add-to-list 'load-path "~/.emacs.d/lisp/modern.el")
(require 'modern)
(modern-mode)

Done!

Keys

The updated keybindings are as follows. Their defaults (like Alt W for "copy") are disabled.

Basic text manipulation

  • Ctrl Z: Undo
  • Ctrl C: Copy
  • Ctrl X: Cut
  • Ctrl V: Paste
  • Ctrl A: Select all

Files

  • Ctrl O: Open / create file
  • Ctrl B: Switch buffer
  • Ctrl S: Save
  • Ctrl Alt S: Save as
  • Ctrl W: Close
  • Ctrl /: View directory

Searching

  • Ctrl F: Find
  • Alt F: Find by regular expression
  • Ctrl R: Find and replace
  • Alt R: Find and replace by regular expression

Windows

  • Ctrl 0: Hide the selected window
  • Ctrl 1: Show only the selected window
  • Ctrl 2: Split window horizontally
  • Ctrl 3: Split window vertically

Text navigation

  • Ctrl H: Back 1 character
  • Alt H: Back 1 word
  • Ctrl Alt H: Back 1 expression
  • Ctrl L: Forward 1 character
  • Alt L: Forward 1 word
  • Ctrl Alt L: Forward 1 expression
  • Ctrl J: Next line
  • Ctrl K: Previous line
  • Ctrl ,: Beginning of line
  • Ctrl .: End of line

Advanced text manipulation

  • Ctrl Alt D: Delete expression

Interactive development

  • Ctrl E: Evaluate expression before cursor
  • Alt E: Evaluate file

Recommendations

Enable ido-mode

ido-mode lets you quickly browse open files and folders. This package's shortcuts are also supported in ido-mode. Simply add the following to your init file to enable it:

(ido-mode 1)