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: Artur Malabarba
Subject: Re: [PATCH] Add json-sexp-mode.
Date: Sat, 17 Oct 2015 22:47:16 +0100

2015-10-17 19:10 GMT+01:00 Taylan Ulrich Bayırlı/Kammer
<address@hidden>:
>
> json.el yields Elisp s-expressions though.  The closest approximation to
> an "Elisp s-expression editing mode" is emacs-lisp-mode.

I've got something even better for you then. You can change your mode
to inherit from prog-mode and add this line:
    (lisp-mode-variables nil nil 'elisp)

This should make sure it has all the syntax definitions of
emacs-lisp-mode, without carrying its keybinds, eldoc, completion
functions, xref definitions, search-path, menu-bars, etc, which (IIUC)
wouldn't make sense for this json-sexp-mode.

Of course, it's up to you. I'm just recommending what I would do.


Cheers,
Artur



reply via email to

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