From 58cbbce26dd7afdf798c4a2970ffd7d54f1b3c24 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Sat, 28 Apr 2018 20:54:07 -0400 Subject: [PATCH] [rc] add latexmk config and clean up --- git/.gitconfig | 15 --------------- git/.gitignore_global | 5 ----- latexmk/.latexmkrc | 10 ---------- rc.org | 21 ++++++++++++++++++++- 4 files changed, 20 insertions(+), 31 deletions(-) delete mode 100644 git/.gitconfig delete mode 100755 git/.gitignore_global delete mode 100644 latexmk/.latexmkrc diff --git a/git/.gitconfig b/git/.gitconfig deleted file mode 100644 index 158c670..0000000 --- a/git/.gitconfig +++ /dev/null @@ -1,15 +0,0 @@ -[user] - email = amin@aminb.org - name = Amin Bandali -# signingkey = 4E05246AB0BF7FFB -# [commit] -# gpgsign = true -# [format] -# signoff = true - -[alias] - git = !exec git -[core] - autocrlf = input -[color] - ui = auto diff --git a/git/.gitignore_global b/git/.gitignore_global deleted file mode 100755 index 4ddea22..0000000 --- a/git/.gitignore_global +++ /dev/null @@ -1,5 +0,0 @@ -*.orig -*.py[co] -*.sublime-workspace -*~ -.DS_Store diff --git a/latexmk/.latexmkrc b/latexmk/.latexmkrc deleted file mode 100644 index c965b3d..0000000 --- a/latexmk/.latexmkrc +++ /dev/null @@ -1,10 +0,0 @@ -$pdf_previewer = "start zathura %O %S"; -$clean_ext = "aux out"; -#$pdf_update_method = 4; -#$pdf_update_command = "zathura %O %S"; - -# Synctex allows one to jump to from the PDF in Zathura to the source in Emacs -# by Ctrl+click in the PDF. -# Tell latexmk to use Zathura as a previewer, and run emacsclient as the Synctex -# editor. -# $pdf_previewer = 'exec zathura --synctex-forward -x \'emacsclient --no-wait +%{line} %{input}\' %O %S'; diff --git a/rc.org b/rc.org index 3e879ea..cef6881 100644 --- a/rc.org +++ b/rc.org @@ -11,7 +11,7 @@ Note: This file is best viewed inside Emacs with org mode. * Configs -** =git= +** Git *** gitconfig :PROPERTIES: @@ -111,3 +111,22 @@ Note: This file is best viewed inside Emacs with org mode. *.elc *-autoloads.el #+end_src + +** Latexmk +:PROPERTIES: +:header-args+: :tangle ~/.latexmkrc +:END: + +#+begin_src conf +$pdf_previewer = "start zathura %O %S"; +$clean_ext = "aux out"; + +# $pdf_update_method = 4; +# $pdf_update_command = "zathura %O %S"; + +# Synctex allows one to jump to from the PDF in Zathura to the source in Emacs +# by Ctrl+click in the PDF. +# Tell latexmk to use Zathura as a previewer, and run emacsclient as the Synctex +# editor. +# $pdf_previewer = 'exec zathura --synctex-forward -x \'emacsclient --no-wait +%{line} %{input}\' %O %S'; +#+end_src -- 2.20.1