Not sure if I'm missing something, but removing flymake-mode from my elpy-default-minor-modes does absolutely nothing...any ideas?
(defcustom elpy-default-minor-modes '(eldoc-mode
highlight-indentation-mode
yas-minor-mode
auto-complete-mode)
"Minor modes enabled when `elpy-mode' is enabled."
:group 'elpy)
defcustom does not override an existing value. For your own customizations, you should use setq, like so:
(setq elpy-default-minor-modes '(eldoc-mode
highlight-indentation-mode
yas-minor-mode
auto-complete-mode))
If this does not work, what version of Elpy are you using?
I'm pretty new to this whole emacs customization business so I appreciate the patience. I was going off the last entry in the FAQ which mentioned elpy-default-minor-modes and elpy.el was the only place I could find any mention of that. But using setq in my .emacs seems to have done the trick, thanks!
You're welcome. :-)
In general, you do not need to change elpy.el or any other package's files directly. Emacs will load those files as well as your .emacs, so you can just override any settings in your .emacs.
Don't hesitate to open a new issue if you have any further problems!
Hi jorgenschaefer, sorry to reopen this topic - but after installing a fresh copy of Yosemite + emacs + elpy I'm running into a similar issue where I cannot disable flymake. My .emacs looks like so:
;; elpy stuff
(elpy-enable)
(setq elpy-default-minor-modes '(eldoc-mode
highlight-indentation-mode
yas-minor-mode))
I'm using emacs 24.3.1, & elpy 1.5.1. Any ideas? Thanks!
edit: found a way to disable it via ely-config, but shouldn't it also work via setq?
Hello, and sorry for the late reply.
Elpy 1.5 introduced a new concept, modules, which replaces the older elpy-default-minor-modes. You can either customize elpy-modules interactively (M-x customize-variable RET elpy-modules RET), or do it manually in your .emacs:
(remove-hook 'elpy-modules 'elpy-module-flymake)
this is great thanks again!
Most helpful comment
Hello, and sorry for the late reply.
Elpy 1.5 introduced a new concept, modules, which replaces the older
elpy-default-minor-modes. You can either customizeelpy-modulesinteractively (M-x customize-variable RET elpy-modules RET), or do it manually in your.emacs: