
You will find many more useful shortcuts in ESS documentation. (global-set-key 'toggle-current-window-dedication) (set-window-dedicated-p window (not dedicated)) (defun toggle-current-window-dedication () (define-key isearch-mode-map (kbd "C-S-s") 'write-file) (define-key isearch-mode-map (kbd "C-s") 'save-buffer) need to redefine them for isearch mode (don't know why) (global-set-key (kbd "C-S-s") 'write-file) (global-set-key (kbd "C-s") 'save-buffer) (define-key isearch-mode-map (kbd "C-S-f") 'isearch-repeat-backward) (define-key isearch-mode-map "\C-f" 'isearch-repeat-forward) (global-set-key (kbd "C-S-f") 'isearch-backward) Search with C-f / C-F (control-maj-F for backware search) (define-key comint-mode-map "\C-o" 'comint-kill-output) (define-key comint-mode-map "\C-r" 'comint-show-output) (define-key comint-mode-map "\C-e" 'comint-show-maximum-output) (define-key inferior-ess-mode-map 'comint-bol) (define-key inferior-ess-mode-map "\C-a" 'comint-bol) (define-key inferior-ess-mode-map "\C-w" 'backward-kill-word) (define-key inferior-ess-mode-map "\C-u" 'comint-kill-input) (define-key ess-mode-map "\C-r" 'ess-eval-region) (define-key ess-mode-map "\C-p" 'ess-eval-function-or-paragraph-and-step) (define-key ess-mode-map "\C-l" 'ess-eval-line-and-step) (define-key ess-mode-map (kbd "C-S-d") 'uncomment-region)Īlso I've also enabled CUA mode (from options menu) and reconfigured quite a lot of shortcuts to require only two keystrokes (instead of four in standard mode): Delete selection when pressing key

GNU Emacs can open text files in multiple character sets and its functionality can be enhanced with Emacs Lisp programs. It's developed by GNU Project's founder Richard Stallman and dubbed 'most powerful text editor of today'. (define-key ess-mode-map (kbd "C-d") 'comment-region) GNU Emacs is the most popular port of the Emacs text editor. "Like `comment-region' invoked with a C-u prefix arg." (define-key comint-mode-map 'comint-next-matching-input-from-input)Ĭomment-uncomment a selected region with C-d or C-maj-d (defun uncomment-region (beg end) The most useful are:Ĭ-tab to switch between the R command line and the file (similar to josh answer, but much faster): (global-set-key 'other-window)Ĭontrol and up/down arrow keys to search history with matching what you've already typed: (define-key comint-mode-map 'comint-previous-matching-input-from-input)
