X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=emacs_el%2Fconfiguration%2Fdon-configuration.org;h=de65daf6546d9596a2c450df6cac356b55472082;hb=83a1896bfe36d3f9c27c5499a32b8400bd16cc9d;hp=abbd4cc5b94dfb0e3318fdcdda0d3473c43d7e6e;hpb=0ab610215b0c3442cecefd41b1ff4796d303be88;p=lib.git diff --git a/emacs_el/configuration/don-configuration.org b/emacs_el/configuration/don-configuration.org index abbd4cc..de65daf 100644 --- a/emacs_el/configuration/don-configuration.org +++ b/emacs_el/configuration/don-configuration.org @@ -113,6 +113,12 @@ load [[https://github.com/jwiegley/use-package/][use-package]] even faster (add-hook 'minibuffer-exit-hook #'don/minibuffer-exit-hook) #+END_SRC * Modules +** Hippie Expand +#+BEGIN_SRC emacs-lisp + (use-package hippie-expand + :bind* (("M-" . hippie-expand)) + ) +#+END_SRC ** Flyspell 🐝 #+BEGIN_SRC emacs-lisp (use-package flyspell @@ -862,6 +868,10 @@ This can be used to link things pretty quickly if necessary #+BEGIN_SRC emacs-lisp (use-package ess :ensure t + :commands R + :mode "\\.R\\'" + :bind (:map ess-mode-map + ("C-c C-R" . dla/ess-region-remote-eval)) :config (defun ess-change-directory (path) "Set the current working directory to PATH for both *R* and Emacs." @@ -884,11 +894,11 @@ This can be used to link things pretty quickly if necessary ((looking-at "^[a-zA-Z0-9_\.]+ ?<- ?function(.*{") 3) (t 1000))) )) - (add-hook 'ess-mode-hook - '(lambda () - (local-set-key (kbd "C-c C-R") - 'dla/ess-region-remote-eval))) - + (defun dla/ess-region-remote-eval (start end) + "Evaluate region in a remote ESS instance" + (interactive "r") + (shell-command-on-region start end "eval_r" (get-buffer-create "***essregionremoteeval***")) + kill-buffer "***essregionremoteeval***") ;; Don't restore history or save workspace image '(inferior-R-args "--no-restore-history --no-save") ) @@ -982,6 +992,13 @@ From http://julien.danjou.info/projects/emacs-packages#rainbow-mode, this colori :ensure f ) #+END_SRC +** Password Store +#+BEGIN_SRC emacs-lisp + (use-package password-store + :ensure f + :commands password-store-edit password-store-create + ) +#+END_SRC * Email ** Mutt *** Message-mode @@ -2312,9 +2329,6 @@ From http://julien.danjou.info/projects/emacs-packages#rainbow-mode, this colori (clear-visited-file-modtime) (not-modified))) (ad-activate 'ask-user-about-supersession-threat) - - (global-set-key "\M- " 'hippie-expand) - #+END_SRC * Server