From 7bd8c0ef2b0f19777fc997924341195d8cc967b8 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sun, 30 Apr 2023 17:25:53 +0200 Subject: [PATCH] Remove obsolete function to conditionally enable lispy Not using this anymore. --- init.el | 1 - site-lisp/db-utils.el | 10 ---------- 2 files changed, 11 deletions(-) diff --git a/init.el b/init.el index f0b8816..c7a413b 100644 --- a/init.el +++ b/init.el @@ -589,7 +589,6 @@ db/run-or-hide-ansi-term db/hex-to-ascii db/text-to-hex - conditionally-enable-lispy turn-on-lispy-when-available turn-on-flycheck-when-file db/sort-nsm-permanent-settings diff --git a/site-lisp/db-utils.el b/site-lisp/db-utils.el index 924cb11..aabb271 100644 --- a/site-lisp/db-utils.el +++ b/site-lisp/db-utils.el @@ -250,16 +250,6 @@ FORMAT-STRING defaults to some ISO 8601-like format." (message time-string) time-string))) -(defun conditionally-enable-lispy () - "Enable lispy-mode when in `eval-expression’ or in -`pp-eval-expression’. lispy must have been loaded for this -first, i.e., this function will not automatically load -lispy." - (when (and (featurep 'lispy) - (or (eq this-command 'eval-expression) - (eq this-command 'pp-eval-expression))) - (lispy-mode 1))) - (defun turn-on-lispy-when-available () "Activate `lispy’ in current buffer when possible. Will print a warning in case of failure."