* etc/NEWS: Add command entry.
* lisp/menu-bar.el (menu-bar-project-menu): Add command entry to
project menu.
* lisp/progmodes/project.el (project-customize-dirlocals):
New command. (Bug#77229)
(cherry picked from commit
da6da5744b95451bdc3339c3a241892466a08551)
(define-key menu [project-compile] '(menu-item "Compile..." project-compile :help "Invoke compiler or Make for current project, view errors"))
(define-key menu [separator-project-programs] menu-bar-separator)
(define-key menu [project-switch-project] '(menu-item "Switch Project..." project-switch-project :help "Switch to another project and then run a command"))
+ (define-key menu [project-customize-dirlocals] '(menu-item "Customize Directory Local Variables" project-customize-dirlocals :help "Customize current project Directory Local Variables."))
(define-key menu [project-vc-dir] '(menu-item "VC Dir" project-vc-dir :help "Show the VC status of the project repository"))
(define-key menu [project-dired] '(menu-item "Open Project Root" project-dired :help "Read the root directory of the current project, to operate on its files"))
(define-key menu [project-find-dir] '(menu-item "Open Directory..." project-find-dir :help "Open existing directory that belongs to current project"))
(interactive)
(vc-dir (project-root (project-current t))))
+;;;###autoload
+(defun project-customize-dirlocals ()
+ "Run `customize-dirlocals' in current project's root."
+ (interactive)
+ (customize-dirlocals
+ (expand-file-name ".dir-locals.el"
+ (project-root (project-current t)))))
+
(declare-function comint-check-proc "comint")
;;;###autoload