Function: Custom-dirlocals-mode

Custom-dirlocals-mode is an interactive and byte-compiled function defined in cus-edit.el.gz.

Signature

(Custom-dirlocals-mode)

Documentation

Major mode for customizing Directory Local Variables in current directory.

This mode runs the hook Custom-dirlocals-mode-hook, as the final or penultimate step during initialization.

<backtab> widget-backward
<down-mouse-1> widget-button-click
<down-mouse-2> widget-button-click
<touchscreen-begin> widget-button-click
C-M-i widget-backward
C-x C-s Custom-dirlocals-save
DEL scroll-down-command
RET widget-button-press
S-<tab> widget-backward
S-SPC scroll-down-command
SPC scroll-up-command
TAB widget-forward
n widget-forward
p widget-backward
q Custom-buffer-done

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/cus-edit.el.gz
(define-derived-mode Custom-dirlocals-mode nil "Custom dirlocals"
  "Major mode for customizing Directory Local Variables in current directory."
  (custom-dirlocals--set-widget-vars)
  (setq-local text-conversion-style 'action)
  (setq-local touch-screen-keyboard-function
              #'Custom-display-on-screen-keyboard-p)
  (setq-local revert-buffer-function #'Custom-dirlocals-revert-buffer)
  (setq-local tool-bar-map
              (or custom-dirlocals-tool-bar-map
                  ;; Set up `custom-dirlocals-tool-bar-map'.
                  (let ((map (make-sparse-keymap)))
                    (mapc
                     (lambda (arg)
                       (tool-bar-local-item-from-menu
                        (nth 1 arg) (nth 4 arg) map Custom-dirlocals-mode-map
                        :label (nth 5 arg)))
                     custom-dirlocals-commands)
                    (setq custom-dirlocals-tool-bar-map map))))
  (run-mode-hooks 'Custom-mode-hook))