doom-emacs/lisp
Henrik Lissner 5bdfecfa92
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-05-21 17:17:12 +02:00
..
cli fix(cli): doom upgrade: void-variable num 2024-05-21 17:17:10 +02:00
lib feat(lib): sudo-{find,this}-file: invoke save-place 2024-05-21 17:17:12 +02:00
demos.org refactor(emacs-lisp): elisp-demos: reorganize Doom demos 2024-05-21 17:16:37 +02:00
doom-cli.el fix(cli): appease byte-compiler wrt defcli-obsolete! 2024-05-21 17:17:02 +02:00
doom-editor.el refactor: remove redundant auto-mode-alist entries 2024-05-21 17:17:11 +02:00
doom-keybinds.el feat: allow setting evil states for leader keys 2024-05-21 17:17:01 +02:00
doom-lib.el docs: remove unintended repetition 2024-05-21 17:17:07 +02:00
doom-modules.el fix: void-variable doom-modules-load-path error 2024-05-21 17:16:43 +02:00
doom-packages.el
doom-profiles.el fix: ensure load-path et co are set on doom/reload 2024-05-21 17:17:04 +02:00
doom-projects.el tweak: move project-list-file to profile data dir 2024-05-21 17:17:02 +02:00
doom-start.el refactor: remove redundant auto-mode-alist entries 2024-05-21 17:17:11 +02:00
doom-ui.el refactor: doom--last-frame: remove unused symbol 2024-05-21 17:17:11 +02:00
doom.el release(modules): 24.04.0-dev 2024-05-21 17:17:10 +02:00
init.el
packages.el bump: :core 2024-05-21 17:17:03 +02:00