I'm trying to use a very simple minor mode I've written to personnalize the appearance of the buffer when I'm running R in ESS.
Basically, I've set the linespacing in my init file to increase it and want this line spacing be turned to nil
when I load ESS.
Here is the .el
file I've written so far.
(define-minor-mode ess_XXX-mode
"Personal configuration of ESS'"
:lighter " ess_XXX")
(setq line-spacing 1)
(set-face-attribute 'default nil :height 110)
(add-to-list 'minor-mode-alist '(ess_XXX-mode " ess_XXX"))
(provide 'ess_XXX-mode)
When I eval the buffer, this works but on all buffers. When I run Emacs, I'm not able to load the minor-mode...
I've added the following in my init file
(require 'ess_XXX-mode)
(add-hook 'iESS-mode-hook 'ess_XXX-mode)
but again this works on all the buffers without any restriction. It seems Emacs cannot find the minor mode (I've stored the .el
file in my .emacs.d/
directory).