Fixing some critical keyboard shortcuts in OS X terminal


Here are some minor tweaks to default keyboard shortcuts in Apple and iTerm.

I like being able to switch from one tab to another using left and right arrows, and I prefer to keep consistent shortcuts so I updated the default ones in with those used in iTerm (e.g., ⌘➝ for next pane). Since uses system localization, labels are in French, and I have a hard time finding how to spell it correctly (because of the single quote).

The other one is for iTerm specifically: I deleted the ⌘W shortcut to close a terminal session because when using Emacs I found it interfering with the standard C-c/C-v for copy/paste (and I just recently happened to lost a whole R session with 200 Mo of statistical modeling).

For Emacs I have the following in one of my Elisp config file:

(when (eq system-type 'darwin)
  (require 'exec-path-from-shell)
  ;; (setq ns-function-modifier 'hyper)
  (setq mac-option-modifier nil)
  (setq mac-command-modifier 'meta))

(setq delete-by-moving-to-trash t
      trash-directory "~/.Trash/emacs")

This means that I can type M-x as ⌘-x or Esc-x.


Articles with the same tag(s):

El Capitan
Why I am still using Emacs
Tmux and OS X
OS X Yosemite
Some useful Mac Apps for data scientists
Collecting email usage statistics from mu
From Beamer to Deckset
A modular configuration for Emacs
Common lisp on Mavericks
OS X Mavericks