]> git.donarmstrong.com Git - lib.git/blobdiff - emacs_el/configuration/don-configuration.org
shell-command-on-region takes more options
[lib.git] / emacs_el / configuration / don-configuration.org
index b9f82eff8fa75633b8d45233a86204810dc940c5..4931f865ffd4fc9a609cc35860c9c1cf79f0ba27 100644 (file)
@@ -82,7 +82,13 @@ load  [[https://github.com/jwiegley/use-package/][use-package]] even faster
     :config (setq paradox-execute-asynchronously t)
     )
 #+END_SRC
-* Add library paths
+* Paths
+** Update PATH
+#+BEGIN_SRC emacs-lisp
+  (add-to-list 'exec-path '"/usr/local/bin")
+  (add-to-list 'exec-path '"~/bin/")
+#+END_SRC
+** Add library paths
 
 #+BEGIN_SRC emacs-lisp
   (add-to-list 'load-path '"~/lib/emacs_el/")
@@ -1203,8 +1209,8 @@ This can be used to link things pretty quickly if necessary
     (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***")
+      (shell-command-on-region start end "eval_r" (get-buffer-create "***essregionremoteeval***") nil nil nil)
+      (kill-buffer "***essregionremoteeval***"))
     ;; Don't restore history or save workspace image
     '(inferior-R-args "--no-restore-history --no-save")
     )
@@ -1221,6 +1227,14 @@ From http://julien.danjou.info/projects/emacs-packages#rainbow-mode, this colori
   )
 #+END_SRC
 
+** YAML Mode
+#+BEGIN_SRC emacs-lisp
+  (use-package yaml-mode
+    ;; add ess to the x major mode
+    :mode ("\\.\\(yaml|yml\\)\\'" . yaml-mode)
+  )
+#+END_SRC
+
 ** Polymode
 #+BEGIN_SRC emacs-lisp
 (use-package poly-noweb