Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 809333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T00:42:43+00:00 2026-05-15T00:42:43+00:00

I would like to ask regular ESS/R users what key bindings do they use

  • 0

I would like to ask regular ESS/R users what key bindings do they use frequently and tips on using ESS/R.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T00:42:43+00:00Added an answer on May 15, 2026 at 12:42 am

    I have set several shortcuts in my .emacs file. The most useful are:

    C-tab to switch between the R command line and the file (similar to josh answer, but much faster):

    (global-set-key [C-tab] 'other-window)
    

    Control and up/down arrow keys to search history with matching what you’ve already typed:

    (define-key comint-mode-map [C-up] 'comint-previous-matching-input-from-input)
    (define-key comint-mode-map [C-down] 'comint-next-matching-input-from-input)
    

    Comment-uncomment a selected region with C-d or C-maj-d

    (defun uncomment-region (beg end)
      "Like `comment-region' invoked with a C-u prefix arg."
      (interactive "r")
      (comment-region beg end -1))
    
    (define-key ess-mode-map (kbd "C-d") 'comment-region)
    (define-key ess-mode-map (kbd "C-S-d") 'uncomment-region)
    

    Also 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 [delete] key
      (delete-selection-mode t)
    
    ;; ESS Mode (.R file)
      (define-key ess-mode-map "\C-l" 'ess-eval-line-and-step)
      (define-key ess-mode-map "\C-p" 'ess-eval-function-or-paragraph-and-step)
      (define-key ess-mode-map "\C-r" 'ess-eval-region)
    
    ;; iESS Mode (R console)
      (define-key inferior-ess-mode-map "\C-u" 'comint-kill-input)
      (define-key inferior-ess-mode-map "\C-w" 'backward-kill-word)
      (define-key inferior-ess-mode-map "\C-a" 'comint-bol)
      (define-key inferior-ess-mode-map [home] 'comint-bol)
    
    ;; Comint Mode (R console as well)
      (define-key comint-mode-map "\C-e" 'comint-show-maximum-output)
      (define-key comint-mode-map "\C-r" 'comint-show-output)
      (define-key comint-mode-map "\C-o" 'comint-kill-output)
    
    ;; Search with C-f / C-F (control-maj-F for backware search)
       (global-set-key "\C-f" 'isearch-forward)
       (global-set-key (kbd "C-S-f") 'isearch-backward)
       (define-key isearch-mode-map "\C-f" 'isearch-repeat-forward)
       (define-key isearch-mode-map (kbd "C-S-f") 'isearch-repeat-backward)
    
    ;; Save with C-s / C-S
      (global-set-key (kbd "C-s") 'save-buffer)
      (global-set-key (kbd "C-S-s") 'write-file)
      ;; need to redefine them for isearch mode (don't know why)
      (define-key isearch-mode-map (kbd "C-s") 'save-buffer)
      (define-key isearch-mode-map (kbd "C-S-s") 'write-file)
    
    ;; Pause = dedicate window. 
      (defun toggle-current-window-dedication ()
       (interactive)
       (let* ((window    (selected-window))
              (dedicated (window-dedicated-p window)))
         (set-window-dedicated-p window (not dedicated))
         (message "Window %sdedicated to %s"
                  (if dedicated "no longer " "")
                  (buffer-name))))
      (global-set-key [pause] 'toggle-current-window-dedication)
    
    ;; delete = delete
      (global-set-key [delete] 'delete-char)
    
    ;; C-b = list buffers
      (global-set-key (kbd "C-b") 'bs-show)
    

    You will find many more useful shortcuts in ESS documentation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.