all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Artur Malabarba <bruce.connor.am@gmail.com>
To: "Taylan Ulrich Bayırlı/Kammer" <taylanbayirli@gmail.com>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: [PATCH] Add json-sexp-mode.
Date: Sat, 17 Oct 2015 22:47:16 +0100	[thread overview]
Message-ID: <CAAdUY-+zOvTMtupaO2e076wk_crSh2cx7Xgapf3U31mahjhnYw@mail.gmail.com> (raw)
In-Reply-To: <8737x9wem9.fsf@T420.taylan>

2015-10-17 19:10 GMT+01:00 Taylan Ulrich Bayırlı/Kammer
<taylanbayirli@gmail.com>:
>
> 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	other threads:[~2015-10-17 21:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-17 16:27 [PATCH] Add json-sexp-mode Taylan Ulrich Bayırlı/Kammer
2015-10-17 17:19 ` Artur Malabarba
2015-10-17 18:10   ` Taylan Ulrich Bayırlı/Kammer
2015-10-17 21:47     ` Artur Malabarba [this message]
2015-10-17 22:08       ` Taylan Ulrich Bayırlı/Kammer
2015-10-19 12:36         ` Taylan Ulrich Bayırlı/Kammer
2015-10-19 13:02           ` Artur Malabarba
2015-10-19 17:09             ` Taylan Ulrich Bayırlı/Kammer
2015-10-19 18:48               ` Artur Malabarba
2015-10-19 19:59                 ` Taylan Ulrich Bayırlı/Kammer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAAdUY-+zOvTMtupaO2e076wk_crSh2cx7Xgapf3U31mahjhnYw@mail.gmail.com \
    --to=bruce.connor.am@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=taylanbayirli@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.