Created
November 7, 2014 18:33
-
-
Save jorgenschaefer/c7629ec3011d9f82b57c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(when (load "ess" t t) | |
(define-key ess-mode-map (kbd "_") 'pyro/underscore-or-assignment) | |
(defun pyro/underscore-or-assignment () | |
(interactive) | |
(if (eq last-command 'pyro/underscore-or-assignment) | |
(progn | |
(backward-char) | |
(insert "->")) | |
(insert "_")))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment