[ESS] clash between setwd macro and skeleton-pair
baptiste auguie
baptiste.auguie at googlemail.com
Tue Aug 9 04:40:46 CEST 2011
Dear emacs gurus,
Thanks to previous tips from this list I've been the .emacs file shown
below for a while, and I'd like to get rid off an annoying clash in
it. The first option I have set is to autocomplete matching
parentheses etc. The last option defines a shortcut for R to setwd(
... where the current file actually lives ....), which I find very
useful. Somehow this last macro is incompatible with the first,
typically resulting in
setwd("")/Users/auguieba/Documents/")"
Best regards,
baptiste
My .emacs file contains:
(setq ess-eval-visibly-p nil)
(setq skeleton-pair t)
(global-set-key (kbd "(") 'skeleton-pair-insert-maybe)
(global-set-key (kbd "[") 'skeleton-pair-insert-maybe)
(global-set-key (kbd "{") 'skeleton-pair-insert-maybe)
(global-set-key (kbd "\"") 'skeleton-pair-insert-maybe)
(global-set-key (kbd "\'") 'skeleton-pair-insert-maybe)
(global-set-key (kbd "\`") 'skeleton-pair-insert-maybe)
(global-set-key (kbd "<") 'skeleton-pair-insert-maybe)
(windmove-default-keybindings)
(fset 'my-setwd-macro
[?\C- ?\C-u ?\M-| ?p ?w ?d return ?\C-p ?s ?e ?t ?w ?d ?\( ?\" ?\C-e ?\"
?\)])
(add-hook
'ess-mode-hook
'(lambda()
(define-key ess-mode-map "\C-c\C-s" 'my-setwd-macro)))
More information about the ESS-help
mailing list