emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Add json-sexp-mode.


From: Taylan Ulrich Bayırlı/Kammer
Subject: Re: [PATCH] Add json-sexp-mode.
Date: Sat, 17 Oct 2015 20:10:06 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Artur Malabarba <address@hidden> writes:

>> +;; Note that `json-sexp-mode' inherits from `emacs-lisp-mode' since
> it's for 
>> +;; editing JSON data as Elisp s-expressions. 
>
> It might be more appropriate to inherit from lisp-mode, which is
> parent to emacs-lisp-mode. It should still provide all of the syntax
> definitions you need without carrying a lot of key binds that don't
> make sense for your mode (like eval-defun or eval-last-sexp). 
>
> I'm not sure which version of emacs added this mode, so you might have
> to add a dependency on emacs 24.3 or something like that. 

json.el yields Elisp s-expressions though.  The closest approximation to
an "Elisp s-expression editing mode" is emacs-lisp-mode.

Taylan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]