From 2602a98d53775485b13b7351e075774bad59bc69 Mon Sep 17 00:00:00 2001 From: earnest ma Date: Fri, 11 Nov 2022 22:15:49 -0500 Subject: [PATCH] * --- doom/.config/doom/config.el | 7 +++++++ git/.config/git/config | 2 ++ 2 files changed, 9 insertions(+) diff --git a/doom/.config/doom/config.el b/doom/.config/doom/config.el index a778e4e..ce9dcf6 100644 --- a/doom/.config/doom/config.el +++ b/doom/.config/doom/config.el @@ -62,6 +62,13 @@ :desc "Clear recent search result" "s c" #'evil-ex-nohighlight) +(defun open-in-pympress () + "Open the current buffer (assumed to be a tex file that has the same name as +the compiled PDF version) in pympress." + (interactive) + (start-process "pympress" nil "pympress" (replace-regexp-in-string "\.tex" ".pdf" buffer-file-name))) + ;; (async-shell-command (concat "pympress " (replace-regexp-in-string "\.tex" ".pdf" buffer-file-name)))) + ;; Whenever you reconfigure a package, make sure to wrap your config in an ;; `after!' block, otherwise Doom's defaults may override your settings. E.g. ;; diff --git a/git/.config/git/config b/git/.config/git/config index 8700d38..16e71e5 100644 --- a/git/.config/git/config +++ b/git/.config/git/config @@ -82,3 +82,5 @@ [credential] helper = store --file ~/.config/git/credentials +[rebase] + updateRefs = true