From ba22b101add63f2088750796ce53bd1ada541b2a Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Wed, 9 Sep 2020 09:53:23 +0100 Subject: [PATCH] chore(editor): add missing interactive call to helper commands --- modules/editor/siren-display-fill-column.el | 2 ++ modules/editor/siren-display-indentation.el | 3 ++- modules/editor/siren-display-line-numbers.el | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/editor/siren-display-fill-column.el b/modules/editor/siren-display-fill-column.el index 19250ab..f24260f 100644 --- a/modules/editor/siren-display-fill-column.el +++ b/modules/editor/siren-display-fill-column.el @@ -20,6 +20,7 @@ (defun siren-display-fill-column (&optional arg) "Activate or deactivate visual fill column. Optional ARG is passed directly to mode toggle function." + (interactive) (display-fill-column-indicator-mode arg))) ;; Emacs 26.x: Use fill-column-indicator package @@ -36,6 +37,7 @@ Optional ARG is passed directly to mode toggle function." (defun siren-display-fill-column (&optional arg) "Activate or deactivate visual fill column. Optional ARG is passed directly to mode toggle function." + (interactive) (fci-mode (or arg t)))) (provide 'siren-display-fill-column) diff --git a/modules/editor/siren-display-indentation.el b/modules/editor/siren-display-indentation.el index b7346da..3b6eee5 100644 --- a/modules/editor/siren-display-indentation.el +++ b/modules/editor/siren-display-indentation.el @@ -11,7 +11,8 @@ (defun siren-display-indentation (&optional arg) "Activate or deactivate indentation guides. Optional ARG is passed directly to mode toggle function." - (highlight-indent-guides-mode (or arg t))) + (interactive) + (highlight-indent-guides-mode arg)) (provide 'siren-display-indentation) ;;; siren-display-indentation.el ends here diff --git a/modules/editor/siren-display-line-numbers.el b/modules/editor/siren-display-line-numbers.el index 6651972..242ed64 100644 --- a/modules/editor/siren-display-line-numbers.el +++ b/modules/editor/siren-display-line-numbers.el @@ -15,7 +15,8 @@ (defun siren-display-line-numbers (&optional arg) "Activate or deactivate line numbers. Optional ARG is passed directly to mode toggle function." - (display-line-numbers-mode (or arg t))) + (interactive) + (display-line-numbers-mode arg)) ;; Fix issue were the left fringe's is cut off by one pixel on the left side. ;; from: https://github.com/dgutov/diff-hl/issues/94#issuecomment-334168416