From bfccf9fc15d370a1634f36628bc67b57ac4d9a6f Mon Sep 17 00:00:00 2001 From: Vijay Edwin Date: Sun, 25 Jun 2017 02:42:50 -0700 Subject: [PATCH] make jsons-path-printer a defcustom variable --- json-snatcher.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/json-snatcher.el b/json-snatcher.el index 03ad92c..25f832b 100644 --- a/json-snatcher.el +++ b/json-snatcher.el @@ -79,7 +79,10 @@ (defvar jsons-parsed-regions (make-hash-table :test 'equal) "Hashes each open buffer to the ranges in the buffer for each of the parse trees nodes.") (defvar jsons-curr-region () "The node ranges in the current buffer.") -(defvar jsons-path-printer 'jsons-print-path-python "Default jsons path printer") +(defcustom jsons-path-printer 'jsons-print-path-python "Default jsons path printer" + :type '(choice + (const jsons-print-path-python) + (const jsons-print-path-jq))) (add-hook 'kill-buffer-hook 'jsons-remove-buffer) (defun jsons-consume-token ()