clean up src config

This commit is contained in:
petrucci4prez 2018-05-19 14:59:58 -04:00
parent fb9dd25438
commit 243ecc1516
2 changed files with 32 additions and 24 deletions

View File

@ -258,7 +258,6 @@ event of an error or nonlocal exit."
(substitute-in-file-name "${XDG_CONFIG_HOME}/r/")) (substitute-in-file-name "${XDG_CONFIG_HOME}/r/"))
(setq org-log-done t) (setq org-log-done t)
(setq org-src-window-setup 'current-window)
(setq org-startup-indented t) (setq org-startup-indented t)
(delight 'org-indent-mode) (delight 'org-indent-mode)
(setq org-directory "~/Org") (setq org-directory "~/Org")
@ -315,6 +314,10 @@ event of an error or nonlocal exit."
;;(add-hook 'org-capture-mode-hook 'evil-append) ;;(add-hook 'org-capture-mode-hook 'evil-append)
(setq org-src-window-setup 'current-window)
(setq org-src-fontify-natively t)
(setq org-edit-src-content-indentation 0)
(add-to-list 'org-structure-template-alist (add-to-list 'org-structure-template-alist
'("el" "#+BEGIN_SRC emacs-lisp\n?\n#+END_SRC")) '("el" "#+BEGIN_SRC emacs-lisp\n?\n#+END_SRC"))

View File

@ -393,7 +393,6 @@ event of an error or nonlocal exit."
** basic ** basic
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(setq org-log-done t) (setq org-log-done t)
(setq org-src-window-setup 'current-window)
(setq org-startup-indented t) (setq org-startup-indented t)
(delight 'org-indent-mode) (delight 'org-indent-mode)
(setq org-directory "~/Org") (setq org-directory "~/Org")
@ -466,18 +465,24 @@ By default, the tag selection window obliterates all but the current window...ho
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
;;(add-hook 'org-capture-mode-hook 'evil-append) ;;(add-hook 'org-capture-mode-hook 'evil-append)
#+END_SRC #+END_SRC
** source snippets ** src
*** emacs-lisp *** basic
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(add-to-list 'org-structure-template-alist (setq org-src-window-setup 'current-window)
(setq org-src-fontify-natively t)
(setq org-edit-src-content-indentation 0)
#+END_SRC
*** snippets
#+BEGIN_SRC emacs-lisp
(add-to-list 'org-structure-template-alist
'("el" "#+BEGIN_SRC emacs-lisp\n?\n#+END_SRC")) '("el" "#+BEGIN_SRC emacs-lisp\n?\n#+END_SRC"))
#+END_SRC #+END_SRC
** keyboard shortcuts ** keyboard shortcuts
*** navigation *** navigation
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(setq org-special-ctrl-a/e t) (setq org-special-ctrl-a/e t)
(setq org-special-ctrl-k t) (setq org-special-ctrl-k t)
(setq org-yank-adjusted-subtrees t) (setq org-yank-adjusted-subtrees t)
#+END_SRC #+END_SRC
*** custom *** custom
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
@ -597,7 +602,7 @@ There are several types of tags I use:
#+END_SRC #+END_SRC
** capture ** capture
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(setq org-capture-templates (setq org-capture-templates
'(("t" "todo" entry (file "~/Org/capture.org") "* TODO %?\ndeliverable: \n%U\n") '(("t" "todo" entry (file "~/Org/capture.org") "* TODO %?\ndeliverable: \n%U\n")
("n" "note" entry (file "~/Org/capture.org") "* %? :\\%note:\n%U\n" ) ("n" "note" entry (file "~/Org/capture.org") "* %? :\\%note:\n%U\n" )
("a" "appointment" entry (file "~/Org/capture.org") "* %?\n%U\n%^t\n" ) ("a" "appointment" entry (file "~/Org/capture.org") "* %?\n%U\n%^t\n" )
@ -1329,7 +1334,7 @@ the agenda does not do this by default...it's annoying
(setq org-agenda-auto-exclude-function 'nd/org-auto-exclude-function) (setq org-agenda-auto-exclude-function 'nd/org-auto-exclude-function)
#+END_SRC #+END_SRC
** column_view ** column view
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(setq org-columns-default-format (setq org-columns-default-format
"%25ITEM %4TODO %TAGS %5Effort{:} %OWNER(OWN)") "%25ITEM %4TODO %TAGS %5Effort{:} %OWNER(OWN)")