json-mode-autoloads.el (2264B)
1 ;;; json-mode-autoloads.el --- automatically extracted autoloads 2 ;; 3 ;;; Code: 4 5 (add-to-list 'load-path (directory-file-name 6 (or (file-name-directory #$) (car load-path)))) 7 8 9 ;;;### (autoloads nil "json-mode" "json-mode.el" (0 0 0 0)) 10 ;;; Generated autoloads from json-mode.el 11 12 (defconst json-mode-standard-file-ext '(".json" ".jsonld") "\ 13 List of JSON file extensions.") 14 15 (defsubst json-mode--update-auto-mode (filenames) "\ 16 Update the `json-mode' entry of `auto-mode-alist'. 17 18 FILENAMES should be a list of file as string. 19 Return the new `auto-mode-alist' entry" (let* ((new-regexp (rx-to-string `(seq (eval (cons 'or (append json-mode-standard-file-ext ',filenames))) eot))) (new-entry (cons new-regexp 'json-mode)) (old-entry (when (boundp 'json-mode--auto-mode-entry) json-mode--auto-mode-entry))) (setq auto-mode-alist (delete old-entry auto-mode-alist)) (add-to-list 'auto-mode-alist new-entry) new-entry)) 20 21 (defvar json-mode-auto-mode-list '(".babelrc" ".bowerrc" "composer.lock") "\ 22 List of filenames for the JSON entry of `auto-mode-alist'. 23 24 Note however that custom `json-mode' entries in `auto-mode-alist' 25 won’t be affected.") 26 27 (custom-autoload 'json-mode-auto-mode-list "json-mode" nil) 28 29 (defvar json-mode--auto-mode-entry (json-mode--update-auto-mode json-mode-auto-mode-list) "\ 30 Regexp generated from the `json-mode-auto-mode-list'.") 31 32 (autoload 'json-mode "json-mode" "\ 33 Major mode for editing JSON files 34 35 \(fn)" t nil) 36 37 (autoload 'jsonc-mode "json-mode" "\ 38 Major mode for editing JSON files with comments 39 40 \(fn)" t nil) 41 42 (add-to-list 'magic-fallback-mode-alist '("^[{[]$" . json-mode)) 43 44 (autoload 'json-mode-show-path "json-mode" "\ 45 Print the path to the node at point to the minibuffer." t nil) 46 47 (autoload 'json-mode-kill-path "json-mode" "\ 48 Save JSON path to object at point to kill ring." t nil) 49 50 (autoload 'json-mode-beautify "json-mode" "\ 51 Beautify / pretty-print the active region (or the entire buffer if no active region). 52 53 \(fn BEGIN END)" t nil) 54 55 (if (fboundp 'register-definition-prefixes) (register-definition-prefixes "json-mode" '("json"))) 56 57 ;;;*** 58 59 ;; Local Variables: 60 ;; version-control: never 61 ;; no-byte-compile: t 62 ;; no-update-autoloads: t 63 ;; coding: utf-8 64 ;; End: 65 ;;; json-mode-autoloads.el ends here