From: Lars Ingebrigtsen <larsi@gnus.org>
To: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
Cc: 4310@debbugs.gnu.org
Subject: bug#4310: Flymake standardizing(slightly) patch
Date: Sun, 28 Feb 2016 17:44:22 +1100 [thread overview]
Message-ID: <87twktqqpl.fsf@gnus.org> (raw)
In-Reply-To: <4A9E01DC.3030903@gmail.com> (Jimmy Yuen Ho Wong's message of "Wed, 02 Sep 2009 01:25:48 -0400")
Jimmy Yuen Ho Wong <wyuenho@gmail.com> writes:
> I was frustrated with the fact that flymake-mode is the one minor-mode
> that I use often and complicated enough but doesn't come with anyway
> to extend it with hooks or keymaps. So I've patch the trunk flymake.el
> to be a little more emacsy.
>
> I've added a default keymap and a minor-mode hook to flymake, I was
> hoping this will make it into the next Emacs version.
[...]
> +(defvar flymake-prefix-map
> + (let ((map (make-sparse-keymap)))
> + (define-key map "s" 'flymake-start-syntax-check)
> + (define-key map "n" 'flymake-goto-next-error)
> + (define-key map "p" 'flymake-goto-prev-error)
> + (define-key map "m" 'flymake-display-err-menu-for-current-line)
> + map))
> +
> +(defvar flymake-mode-map
> + (let ((map (make-sparse-keymap)))
> + (define-key map "\C-c;" flymake-prefix-map)
> + map)
> + "The keymap provides the default flymake-mode bindings.")
> +
> +(defvar flymake-mode-hook nil
> + "Mode hook for `flymake-mode`. This hook is run __before__
> +syntax check happens, but after all the initialization is done.")
As Glenn said, the hook isn't needed, but I think the minor mode map
might make sense.
I've never used flymake, though, so I can't really say. Anybody?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2016-02-28 6:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-02 5:25 bug#4310: Flymake standardizing(slightly) patch Jimmy Yuen Ho Wong
2009-09-03 6:02 ` Glenn Morris
2009-09-03 12:23 ` Jimmy Yuen Ho Wong
2009-09-03 13:43 ` Stefan Monnier
2009-09-04 5:13 ` Kevin Rodgers
2016-02-28 6:44 ` Lars Ingebrigtsen [this message]
2019-06-27 17:52 ` Lars Ingebrigtsen
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=87twktqqpl.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=4310@debbugs.gnu.org \
--cc=wyuenho@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.