Browse Source

Push mark when not set yet

master
10sr 4 years ago
parent
commit
2f9a30d1d1
Signed by: 10sr GPG Key ID: 7BEC428194130EB2
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      emacs.el

+ 4
- 3
emacs.el View File

@@ -534,9 +534,10 @@ Otherwize hook it."
;; (when (fboundp 'visible-mark-move-overlays) ;; (when (fboundp 'visible-mark-move-overlays)
;; (visible-mark-move-overlays)) ;; (visible-mark-move-overlays))
)) ))
(add-hook 'find-file-hook
'push-mark
t)
(add-hook 'switch-buffer-functions
(lambda (&rest _)
(unless (mark t)
(push-mark))))


(when (fboundp 'back-button-mode) (when (fboundp 'back-button-mode)
(back-button-mode 1)) (back-button-mode 1))


Loading…
Cancel
Save