I have enabled org-indent-mode in all org files as such:
(add-hook 'org-mode-hook 'org-indent-mode)
Now I want to diminish the "Ind" minor mode, which seems to be beyond my abilities. I know the diminish package is loading and working properly, as other diminishes work as expected.
I managed to find (add-hook 'org-mode-hook '(diminish 'org-indent-mode))
, which actually diminishes the mode, but also shows File mode specification error: (invalid-function (diminish (quote org-indent-mode)))
in messages, which seems like I'm doing something wrong.
A list of other things I've tried that don't work:
(eval-after-load "org" '(diminish 'org-indent-mode))
(diminish 'org-indent-mode)
(add-hook 'org-mode-hook
(lambda ()
(diminish 'org-indent-mode))
(defun dim-org-ind-mode ()
"Hah, this doesn't work either."
(interactive)
(diminish 'org-indent-mode))
(add-hook 'org-mode-hook 'dim-org-ind-mode)
Using M-x diminish
works fine with no errors in messages.
add-hook
. I'm referring to the list of things you tried.