emacs-devel
[Top][All Lists]
Advanced

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

Re: mykie.el


From: Leo Liu
Subject: Re: mykie.el
Date: Sat, 04 Jan 2014 16:36:16 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (OS X 10.9.1)

On 2014-01-04 12:34 +0800, Stefan Monnier wrote:
> Is that really much better than:
>
>   (global-set-key "\C-j"
>      (lambda ()
>        (interactive)
>        (cond
>         (current-prefix-arg (fill-region (point-at-bol) (point-at-eol)))
>         ((and (use-region-p) (eolp))
>          (call-interactively 'query-replace-regexp))
>         (t
>          (delete-trailing-whitespace)
>          (case major-mode
>            (org-mode (org-return-indent))
>            (t        (newline-and-indent)))))))

My thought exactly. Elisp is the best DSL for emacs.

Leo



reply via email to

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