From 92aaa6b10c1617d9b832a817ac9ebdd22b893c15 Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Fri, 17 Jun 2022 23:14:29 +0300 Subject: [PATCH] Minor configuration tweaks --- .emacs.d/esy.org | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.emacs.d/esy.org b/.emacs.d/esy.org index 8d27577..6053b50 100644 --- a/.emacs.d/esy.org +++ b/.emacs.d/esy.org @@ -170,6 +170,10 @@ For further information about Elisp headers, see [[info:elisp#Library (setq vertalen--source nil) (setq vertalen-history nil) + (with-eval-after-load 'savehist + (add-to-list 'savehist-additional-variables + 'vertalen-history)) + (defun vertalen (word) "Translate WORD." (interactive (list (read-string "Translate: " nil 'vertalen-history (thing-at-point 'word)))) @@ -184,7 +188,7 @@ For further information about Elisp headers, see [[info:elisp#Library (defun vertalen-at-point () "Translate word at point." - (interactive) + (interactive nil vertalen-mode) (vertalen (thing-at-point 'word t))) (defvar-keymap vertalen-mode-map @@ -513,9 +517,9 @@ refiling directly into deeper headings as well. (defvar esy/org-capture-to-project-heading-history-list nil "History list for 'esy/org-capture-to-project-heading'.") - (require 'savehist) - (add-to-list 'savehist-additional-variables - 'esy/org-capture-to-project-heading-history-list) + (with-eval-after-load 'savehist + (add-to-list 'savehist-additional-variables + 'esy/org-capture-to-project-heading-history-list)) (defun esy/org-capture-to-project-heading () "Prompt for a projects and capture a related task." -- 2.39.5