emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* emacs
@ 2018-05-15 20:20 Nathan A
  2018-05-15 20:21 ` emacs Nathan A
  0 siblings, 1 reply; 2+ messages in thread
From: Nathan A @ 2018-05-15 20:20 UTC (permalink / raw)
  To: emacs-orgmode

evil go to center when using G


(defun scroll-to-center-advice (&rest args)
  (evil-scroll-line-to-center (line-number-at-pos)))

(advice-add #'evil-goto-line :after #'scroll-to-center-advice)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: emacs
  2018-05-15 20:20 emacs Nathan A
@ 2018-05-15 20:21 ` Nathan A
  0 siblings, 0 replies; 2+ messages in thread
From: Nathan A @ 2018-05-15 20:21 UTC (permalink / raw)
  To: emacs-orgmode

Previous email was sent my mistake, sorry about that.

On Tue, May 15, 2018 at 1:20 PM, Nathan A <nathan.aclander@gmail.com> wrote:
> evil go to center when using G
>
>
> (defun scroll-to-center-advice (&rest args)
>   (evil-scroll-line-to-center (line-number-at-pos)))
>
> (advice-add #'evil-goto-line :after #'scroll-to-center-advice)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-05-15 20:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-15 20:20 emacs Nathan A
2018-05-15 20:21 ` emacs Nathan A

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).