Function: editorconfig-display-current-properties

editorconfig-display-current-properties is an autoloaded, interactive and byte-compiled function defined in editorconfig-tools.el.gz.

Signature

(editorconfig-display-current-properties)

Documentation

Display EditorConfig properties extracted for current buffer.

Key Bindings

Aliases

describe-editorconfig-properties

Source Code

;; Defined in /usr/src/emacs/lisp/editorconfig-tools.el.gz
;;;###autoload
(defun editorconfig-display-current-properties ()
  "Display EditorConfig properties extracted for current buffer."
  (interactive)
  (if editorconfig-properties-hash
      (let ((buf (get-buffer-create "*EditorConfig Properties*"))
            (file buffer-file-name)
            (props editorconfig-properties-hash))
        (with-current-buffer buf
          (erase-buffer)
          (insert (format "# EditorConfig for %s\n" file))
          (maphash (lambda (k v)
                     (insert (format "%S = %s\n" k v)))
                   props))
        (display-buffer buf))
    (message "Properties are not applied to current buffer yet.")
    nil))