add buffer switch

This commit is contained in:
petrucci4prez 2018-07-14 20:11:10 -04:00
parent 6502f03f72
commit 0e52a119c3
2 changed files with 14 additions and 1 deletions

View File

@ -294,6 +294,12 @@ event of an error or nonlocal exit."
(insert region) (insert region)
(setq end (point)))))) (setq end (point))))))
(defun nd/switch-to-previous-buffer ()
(interactive)
(switch-to-buffer (other-buffer (current-buffer) 1)))
(global-set-key (kbd "M-b") 'nd/switch-to-previous-buffer)
(setq inferior-R-args "--quiet --no-save") (setq inferior-R-args "--quiet --no-save")
(load "ess-site") (load "ess-site")
(setq ess-history-file "session.Rhistory") (setq ess-history-file "session.Rhistory")
@ -524,7 +530,6 @@ event of an error or nonlocal exit."
(setq org-refile-use-outline-path t) (setq org-refile-use-outline-path t)
(setq org-outline-path-complete-in-steps nil) (setq org-outline-path-complete-in-steps nil)
;; (setq org-completion-use-ido t)
(setq org-refile-allow-creating-parent-nodes 'confirm) (setq org-refile-allow-creating-parent-nodes 'confirm)

View File

@ -397,6 +397,14 @@ event of an error or nonlocal exit."
(setq end (point)))))) (setq end (point))))))
#+END_SRC #+END_SRC
(goto-char (+ origin (* (length region) arg) arg))))) (goto-char (+ origin (* (length region) arg) arg)))))
** previous buffer
#+BEGIN_SRC emacs-lisp
(defun nd/switch-to-previous-buffer ()
(interactive)
(switch-to-buffer (other-buffer (current-buffer) 1)))
(global-set-key (kbd "M-b") 'nd/switch-to-previous-buffer)
#+END_SRC
* ess * ess
#+begin_src emacs-lisp #+begin_src emacs-lisp
(setq inferior-R-args "--quiet --no-save") (setq inferior-R-args "--quiet --no-save")