[emacs] Add support for editing osx plists

This commit is contained in:
Correl Roush 2020-07-23 15:29:17 -04:00
parent f76ec775e0
commit 534e21c227

View file

@ -1204,6 +1204,23 @@ Study kanji by overlaying hiragana readings.
:mode ("\\.epub\\'" . nov-mode) :mode ("\\.epub\\'" . nov-mode)
:config :config
(setq nov-save-place-file (concat doom-cache-dir "nov-places"))) (setq nov-save-place-file (concat doom-cache-dir "nov-places")))
* Editing binary-compressed plist files in OSX
From https://www.emacswiki.org/emacs/MacOSXPlist#toc1
#+begin_src emacs-lisp
;; Allow editing of binary .plist files.
(add-to-list 'jka-compr-compression-info-list
["\\.plist$"
"converting text XML to binary plist"
"plutil"
("-convert" "binary1" "-o" "-" "-")
"converting binary plist to text XML"
"plutil"
("-convert" "xml1" "-o" "-" "-")
nil nil "bplist"])
;;It is necessary to perform an update!
(jka-compr-update)
#+end_src #+end_src
* Miscellaneous Nonsense * Miscellaneous Nonsense
** BRING ON THE ... ** BRING ON THE ...