(define-minor-mode): Don't automatically add a :require to the defcustom.
This commit is contained in:
parent
b7a45ee150
commit
62350cdd1a
2 changed files with 18 additions and 14 deletions
|
@ -201,10 +201,7 @@ See the command `%s' for a description of this minor-mode."))
|
|||
:type 'boolean
|
||||
,@(cond
|
||||
((not (and curfile require)) nil)
|
||||
((not (eq require t)) `(:require ,require))
|
||||
(t `(:require
|
||||
',(intern (file-name-nondirectory
|
||||
(file-name-sans-extension curfile))))))
|
||||
((not (eq require t)) `(:require ,require)))
|
||||
,@(nreverse extra-keywords))))
|
||||
|
||||
;; The actual function.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue