Create 'Document Editing' heading for org and TeX

This commit is contained in:
Ivan Malison 2016-07-07 17:56:00 -07:00
parent 846523e563
commit 6d928d16dd

View File

@ -1162,8 +1162,8 @@ Sets environment variables by starting a shell
("t" imalison:make-test "Test") ("t" imalison:make-test "Test")
("u" imalison:glide-up "Update Dependencies")))) ("u" imalison:glide-up "Update Dependencies"))))
#+END_SRC #+END_SRC
** org ** Document Editing
*** main *** org
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package org (use-package org
:ensure org-plus-contrib :ensure org-plus-contrib
@ -1562,7 +1562,7 @@ Sets environment variables by starting a shell
;; blame. ;; blame.
)) ))
#+END_SRC #+END_SRC
*** org-projectile **** org-projectile
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(imalison:use-package org-projectile (imalison:use-package org-projectile
:after helm :after helm
@ -1587,7 +1587,7 @@ Sets environment variables by starting a shell
:candidate-number-limit 99999 :candidate-number-limit 99999
:buffer "*helm org capture templates*")))) :buffer "*helm org capture templates*"))))
#+END_SRC #+END_SRC
*** org-notify **** org-notify
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package org-notify (use-package org-notify
:disabled t :disabled t
@ -1643,6 +1643,29 @@ Sets environment variables by starting a shell
'(:time "100d" :actions -email :period "5d" :audible nil)) '(:time "100d" :actions -email :period "5d" :audible nil))
(org-notify-start 10))) (org-notify-start 10)))
#+END_SRC #+END_SRC
*** TeX
#+BEGIN_SRC emacs-lisp
(use-package tex
:ensure auctex
:commands TeX-mode
:config
(progn
(unbind-key "C-j" TeX-mode-map)
(setq TeX-auto-save t
TeX-parse-self t
TeX-save-query nil
TeX-PDF-mode t)
(TeX-global-PDF-mode t)))
#+END_SRC
**** latex
#+BEGIN_SRC emacs-lisp
(use-package latex
:ensure auctex
:after tex
:config
(progn
(unbind-key "C-j" LaTeX-mode-map)))
#+END_SRC
** Navigation/Completion ** Navigation/Completion
*** zop-to-char *** zop-to-char
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
@ -3330,60 +3353,6 @@ I've disabled perspective because I just don't use it much.
(add-hook 'c++-mode-hook 'helm-gtags-mode) (add-hook 'c++-mode-hook 'helm-gtags-mode)
(add-hook 'asm-mode-hook 'helm-gtags-mode))) (add-hook 'asm-mode-hook 'helm-gtags-mode)))
#+END_SRC #+END_SRC
*** tex
#+BEGIN_SRC emacs-lisp
(use-package tex
:ensure auctex
:preface
(progn
(defun guess-TeX-master (filename)
"Guess the master file for FILENAME from currently open .tex files."
(let ((candidate nil)
(filename (file-name-nondirectory filename)))
(save-excursion
(dolist (buffer (buffer-list))
(with-current-buffer buffer
(let ((name (buffer-name))
(file buffer-file-name))
(if (and file (string-match "\\.tex$" file))
(progn
(goto-char (point-min))
(if (re-search-forward
(concat "\\\\input{" filename "}") nil t)
(setq candidate file))
(if (re-search-forward
"\\\\include{" (file-name-sans-extension filename) "}"
nil t)
(setq candidate file))))))))
(if candidate
(message "TeX master document: %s" (file-name-nondirectory candidate)))
candidate))
(defun set-TeX-master ()
(setq TeX-master (guess-TeX-master (buffer-file-name)))))
:commands TeX-mode
:config
(progn
(add-hook 'TeX-mode-hook 'set-TeX-master)
(unbind-key "C-j" TeX-mode-map)
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq TeX-save-query nil)
(setq TeX-PDF-mode t)
(TeX-global-PDF-mode t)
(setq-default TeX-master nil)))
#+END_SRC
#+BEGIN_SRC emacs-lisp
#+END_SRC
*** latex
#+BEGIN_SRC emacs-lisp
(use-package latex
:ensure auctex
:after tex
:config
(progn
(unbind-key "C-j" LaTeX-mode-map)))
#+END_SRC
*** yaml-mode *** yaml-mode
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package yaml-mode (use-package yaml-mode