[latex] move to markup section
This commit is contained in:
parent
9cd08478ed
commit
13e884b870
78
init.org
78
init.org
|
@ -1823,46 +1823,8 @@ Don't try to check if there are files with a certain extension...it will lead to
|
|||
|
||||
#+END_SRC
|
||||
|
||||
** TODO LaTeX
|
||||
1. [ ] merge personal commands with those in Lilypond mode
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package auctex
|
||||
:hook ((tex-mode . TeX-source-correlate-mode))
|
||||
:bind (:map LaTeX-mode-map
|
||||
("M-c" . cp-backward-def)
|
||||
("M-r" . cp-forward-def)
|
||||
("M-." . forward-sentence))
|
||||
:config
|
||||
(setq TeX-auto-save t
|
||||
TeX-parse-self t
|
||||
TeX-engine 'xetex
|
||||
;; 2017-10-14T18:55:05+0530
|
||||
TeX-view-program-selection '(((output-dvi has-no-display-manager)
|
||||
"dvi2tty")
|
||||
((output-dvi style-pstricks)
|
||||
"dvips and gv")
|
||||
(output-dvi "xdvi")
|
||||
(output-pdf "Zathura")
|
||||
(output-html "xdg-open")))
|
||||
;; 2017-10-19T09:19:34+0530 - these should be merged with
|
||||
;; cp-forward-def/cp-backward-def in cp-lily...
|
||||
(defun cp-backward-def ()
|
||||
(interactive)
|
||||
(push-mark)
|
||||
(re-search-backward "\\\\scene" nil t)
|
||||
(beginning-of-line)
|
||||
(recenter))
|
||||
(defun cp-forward-def ()
|
||||
(interactive)
|
||||
(push-mark)
|
||||
(if (not (re-search-forward "\\\\scene" nil t 2))
|
||||
(re-search-forward "\\end{document}" nil t))
|
||||
(beginning-of-line)
|
||||
(recenter)))
|
||||
#+END_SRC
|
||||
|
||||
** Navigation
|
||||
#+BEGIN_SRC emacs-lisp :load yes
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
;; Vim-style prompt-less tag jumping
|
||||
;; http://stackoverflow.com/questions/12074897/automatically-jump-to-tag-in-emacs
|
||||
(global-unset-key (kbd "M-t"))
|
||||
|
@ -2718,6 +2680,44 @@ Used by Eldev documentation.
|
|||
:config)
|
||||
#+END_SRC
|
||||
|
||||
*** TODO LaTeX
|
||||
1. [ ] merge personal commands with those in Lilypond mode
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package auctex
|
||||
:hook ((tex-mode . TeX-source-correlate-mode))
|
||||
:bind (:map LaTeX-mode-map
|
||||
("M-c" . cp-backward-def)
|
||||
("M-r" . cp-forward-def)
|
||||
("M-." . forward-sentence))
|
||||
:config
|
||||
(setq ;; TeX-auto-save t
|
||||
;; TeX-parse-self t
|
||||
TeX-engine 'xetex
|
||||
;; 2017-10-14T18:55:05+0530
|
||||
;; TeX-view-program-selection '(((output-dvi has-no-display-manager)
|
||||
;; "dvi2tty")
|
||||
;; ((output-dvi style-pstricks)
|
||||
;; "dvips and gv")
|
||||
;; (output-dvi "xdvi")
|
||||
;; (output-pdf "Zathura")
|
||||
;; (output-html "xdg-open"))
|
||||
)
|
||||
;; 2017-10-19T09:19:34+0530 - these should be merged with
|
||||
;; cp-forward-def/cp-backward-def in cp-lily...
|
||||
(defun cp-backward-def ()
|
||||
(interactive)
|
||||
(push-mark)
|
||||
(re-search-backward "\\\\scene" nil t)
|
||||
(beginning-of-line)
|
||||
(recenter))
|
||||
(defun cp-forward-def ()
|
||||
(interactive)
|
||||
(push-mark)
|
||||
(if (not (re-search-forward "\\\\scene" nil t 2))
|
||||
(re-search-forward "\\end{document}" nil t))
|
||||
(beginning-of-line)
|
||||
(recenter)))
|
||||
#+END_SRC
|
||||
** midnight-mode
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package midnight
|
||||
|
|
Loading…
Reference in New Issue