Function: edn-mode

edn-mode is an autoloaded, interactive and byte-compiled function defined in clojure-mode.el.

Signature

(edn-mode)

Documentation

Major mode for editing EDN data files.

EDN (Extensible Data Notation) is a subset of Clojure used as a data format. This mode inherits Clojure syntax and navigation but uses simplified indentation appropriate for data structures rather than code.

C-: clojure-toggle-keyword-string
C-M-q prog-indent-sexp
C-c C-a clojure-align
C-c C-r # clojure-convert-collection-to-set
C-c C-r ' clojure-convert-collection-to-quoted-list
C-c C-r ( clojure-convert-collection-to-list
C-c C-r - clojure-toggle-ignore
C-c C-r C-# clojure-convert-collection-to-set
C-c C-r C-' clojure-convert-collection-to-quoted-list
C-c C-r C-( clojure-convert-collection-to-list
C-c C-r C-- clojure-toggle-ignore
C-c C-r C-_ clojure-toggle-ignore-surrounding-form
C-c C-r C-{ clojure-convert-collection-to-map
C-c C-r ESC clojure-convert-collection-to-vector
C-c C-r [ clojure-convert-collection-to-vector
C-c C-r _ clojure-toggle-ignore-surrounding-form
C-c C-r { clojure-convert-collection-to-map
M-q prog-fill-reindent-defun

In addition to any hooks its parent mode clojure-mode might have run, this mode runs the hook edn-mode-hook, as the final or penultimate step during initialization.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/clojure-mode-20260325.811/clojure-mode.el
;;;###autoload
(define-derived-mode edn-mode clojure-mode "EDN"
  "Major mode for editing EDN data files.

EDN (Extensible Data Notation) is a subset of Clojure used as a data format.
This mode inherits Clojure syntax and navigation but uses simplified
indentation appropriate for data structures rather than code.

\\{edn-mode-map}"
  (setq-local clojure-indent-style 'always-align)
  (setq-local clojure-enable-indent-specs nil))