chore(editor): add missing interactive call to helper commands

This commit is contained in:
2020-09-09 09:53:23 +01:00
parent b38bcee246
commit ba22b101ad
3 changed files with 6 additions and 2 deletions

View File

@@ -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)

View File

@@ -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

View File

@@ -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