bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#25271: 26.0.50; [PATCH] comint-insert-previous-argument logic improv


From: Noam Postavsky
Subject: bug#25271: 26.0.50; [PATCH] comint-insert-previous-argument logic improvements
Date: Tue, 01 May 2018 21:36:41 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Dima Kogan <address@hidden> writes:

> +(defvar-local comint-insert-previous-argument-from-end nil

> +This variable is buffer-local.  To get the zsh behavior in `M-x
> +shell' sessions, do something like this:
> +
> +    (add-hook
> +      'shell-mode-hook
> +        (lambda ()
> +          (setq comint-insert-previous-argument-from-end t)))")
> +

Seems simpler to just make it a defcustom.  The user could still
setq-local if they really want per-buffer settings.





reply via email to

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