[ESS] customizing ess-indent-with-fancy-comments

Thomas Alexander Gerds t@g @end|ng |rom b|o@t@t@ku@dk
Wed Jan 15 20:05:27 CET 2020

Dear ess-developers

GNU Emacs 27.0.50
ess-version: 18.10.3snapshot [elpa: 20200103.915] 

maybe I am missing something but according to the manual
(https://ess.r-project.org/Manual/ess.html#Styles) the following should

| (defun dont-like-fancy ()
|        (setq ess-indent-with-fancy-comments nil))
| (add-hook ’ess-mode-hook 'dont-like-fancy)
| (add-hook ’ess-r-mode-hook 'dont-like-fancy)

however it does not. why not? is the mode-hook not the last thing run?
and where in the code is the run-hooks ess(-r)-mode statment? grep does
not seem to reveal this ... anyway, playing with ess-default-style,
ess-own-style-list etc for quite a while did not help me either. google
did not find examples ...

at the end of the day this here works (for me):

| (defun dont-like-fancy ()
|   (setcdr (assoc 'ess-indent-with-fancy-comments (cdr (assoc 'RRR ess-style-alist))) nil)
|   )
| (add-hook 'ess-mode-hook 'dont-like-fancy)
| (add-hook 'ess-r-mode-hook 'dont-like-fancy)

how about changing the documentation?

cheers, Tomy

7LL-5 Don’t compare your life with others, you have no idea what their journey is all about.

More information about the ESS-help mailing list