|
@@ -515,8 +515,8 @@ Otherwize hook it." |
|
|
(defvar ivy-sort-functions-alist) |
|
|
(defvar ivy-sort-functions-alist) |
|
|
(add-to-list 'ivy-sort-functions-alist |
|
|
(add-to-list 'ivy-sort-functions-alist |
|
|
'(counsel-mark-ring))) |
|
|
'(counsel-mark-ring))) |
|
|
(run-with-idle-timer 5 t |
|
|
|
|
|
'push-mark) |
|
|
|
|
|
|
|
|
(run-with-idle-timer 10 t |
|
|
|
|
|
'push-mark) |
|
|
|
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
|
;; title and mode-line |
|
|
;; title and mode-line |
|
@@ -1149,12 +1149,11 @@ Otherwize hook it." |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;; bookmarks |
|
|
;; bookmarks |
|
|
;; Bookmark feature does not work well with multiple emacs instances... |
|
|
|
|
|
|
|
|
|
|
|
;; (define-key ctl-x-map "m" 'list-bookmarks) |
|
|
|
|
|
(set-variable 'bookmark-default-file |
|
|
(set-variable 'bookmark-default-file |
|
|
(expand-file-name (concat user-emacs-directory |
|
|
(expand-file-name (concat user-emacs-directory |
|
|
"bmk"))) |
|
|
"bmk"))) |
|
|
|
|
|
(set-variable 'bookmark-sort-flag nil) |
|
|
|
|
|
|
|
|
(defun my-bookmark-set () |
|
|
(defun my-bookmark-set () |
|
|
"My `bookmark-set'." |
|
|
"My `bookmark-set'." |
|
@@ -1171,14 +1170,33 @@ Otherwize hook it." |
|
|
name linenum linetext) |
|
|
name linenum linetext) |
|
|
nil))) |
|
|
nil))) |
|
|
|
|
|
|
|
|
(set-variable 'bookmark-save-flag |
|
|
|
|
|
1) |
|
|
|
|
|
|
|
|
;; Done by advice instead |
|
|
|
|
|
;; (set-variable 'bookmark-save-flag |
|
|
|
|
|
;; 1) |
|
|
(with-eval-after-load 'recentf |
|
|
(with-eval-after-load 'recentf |
|
|
(defvar recentf-exclude) |
|
|
(defvar recentf-exclude) |
|
|
(defvar bookmark-default-file) |
|
|
(defvar bookmark-default-file) |
|
|
(add-to-list 'recentf-exclude |
|
|
(add-to-list 'recentf-exclude |
|
|
(regexp-quote bookmark-default-file))) |
|
|
(regexp-quote bookmark-default-file))) |
|
|
|
|
|
|
|
|
|
|
|
(defvar bookmark-default-file) |
|
|
|
|
|
(defun my-bookmark-set--advice (orig-func &rest args) |
|
|
|
|
|
"Function for `bookmark-set-internal'. |
|
|
|
|
|
|
|
|
|
|
|
ORIG-FUNC is the target function, and ARGS is the argument when it is called." |
|
|
|
|
|
(bookmark-load bookmark-default-file) |
|
|
|
|
|
(apply orig-func args) |
|
|
|
|
|
(bookmark-save)) |
|
|
|
|
|
|
|
|
|
|
|
(with-eval-after-load 'bookmark |
|
|
|
|
|
(advice-add 'bookmark-set-internal |
|
|
|
|
|
:around |
|
|
|
|
|
'my-bookmark-set--advice)) |
|
|
|
|
|
(define-key ctl-x-map "b" 'list-bookmarks) |
|
|
|
|
|
(when (fboundp 'counsel-bookmark) |
|
|
|
|
|
(define-key ctl-x-map "b" 'counsel-bookmark)) |
|
|
|
|
|
(define-key ctl-x-map "B" 'my-bookmark-set) |
|
|
|
|
|
|
|
|
;; vc |
|
|
;; vc |
|
|
|
|
|
|
|
|
(set-variable 'vc-handled-backends '(RCS)) |
|
|
(set-variable 'vc-handled-backends '(RCS)) |
|
|