doomemacs/lisp
Henrik Lissner f18603e66a
feat(lib): sudo-{find,this}-file: invoke save-place
After switching to the sudo-ed tramp buffer, this restores the point and
scroll position of the window to match the source buffer.

I exploit save-place here instead of simply saving/restoring (point)
and (window-start), because I believe it's better UX that save-place
treat the two buffers as effectively the same now and in the future, and
record the last cursor position equally between them, even if the
implementation is messier. This *could* be generalized into an advice
for save-place-find-file-hook and save-place-to-alist, but that's an
experiment for another day.

This is an experimental implementation and may change later.

Close: #7181
Co-authored-by: YourFin <YourFin@users.noreply.github.com>
2024-04-05 18:38:14 -04:00
..
cli fix(cli): doom upgrade: void-variable num 2024-04-03 19:21:14 -04:00
lib feat(lib): sudo-{find,this}-file: invoke save-place 2024-04-05 18:38:14 -04:00
demos.org refactor(emacs-lisp): elisp-demos: reorganize Doom demos 2024-02-04 17:54:29 -05:00
doom-cli.el fix(cli): appease byte-compiler wrt defcli-obsolete! 2024-03-24 18:03:13 -04:00
doom-editor.el refactor: remove redundant auto-mode-alist entries 2024-04-05 12:06:18 -04:00
doom-keybinds.el feat: allow setting evil states for leader keys 2024-03-22 10:24:21 -04:00
doom-lib.el docs: remove unintended repetition 2024-04-01 13:30:10 -04:00
doom-modules.el fix: void-variable doom-modules-load-path error 2024-02-06 23:59:30 -05:00
doom-packages.el nit: general reformatting & minor comment revision 2023-09-11 23:56:21 +02:00
doom-profiles.el fix: ensure load-path et co are set on doom/reload 2024-03-26 22:25:29 -04:00
doom-projects.el tweak: move project-list-file to profile data dir 2024-03-24 18:03:13 -04:00
doom-start.el refactor: remove redundant auto-mode-alist entries 2024-04-05 12:06:18 -04:00
doom-ui.el refactor: doom--last-frame: remove unused symbol 2024-04-04 23:46:07 -04:00
doom.el release(modules): 24.04.0-dev 2024-04-04 00:23:20 -04:00
init.el fix: add :depth field to modules 2022-09-24 18:46:21 +02:00
packages.el bump: :core 2024-03-24 18:08:09 -04:00