mirror of
https://codeberg.org/scip/autoscratch.git
synced 2025-12-17 12:30:58 +01:00
use eval only
This commit is contained in:
@@ -194,9 +194,7 @@ to $mode-scratch."
|
|||||||
(defun autoscratch--eval-trigger (form)
|
(defun autoscratch--eval-trigger (form)
|
||||||
"If FORM is a function execute interactively, otherwise evaluate it.
|
"If FORM is a function execute interactively, otherwise evaluate it.
|
||||||
Executes `autoscratch-trigger-hook' after evaluation."
|
Executes `autoscratch-trigger-hook' after evaluation."
|
||||||
(if (autoscratch--function-p form)
|
(eval form)
|
||||||
(call-interactively form)
|
|
||||||
(eval form))
|
|
||||||
(run-hooks 'autoscratch-post-trigger-hook)
|
(run-hooks 'autoscratch-post-trigger-hook)
|
||||||
(message (format "autoscratch switched to %s" major-mode)))
|
(message (format "autoscratch switched to %s" major-mode)))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user