Browse Source

Add my-exchange-point-and-mark

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

+ 10
- 1
emacs.el View File

@@ -420,6 +420,7 @@ Otherwize hook it."
(cua-mode 0)
(setq line-move-visual nil)
(setq create-lockfiles nil)
(setq set-mark-command-repeat-pop t)

(add-hook 'before-save-hook
'time-stamp)
@@ -500,6 +501,14 @@ Otherwize hook it."
;; (add-hook 'after-first-visit-hook
;; 'fancy-narrow-mode))

;; https://solist.work/blog/posts/mark-ring/
(defun my-exchange-point-and-mark ()
"`exchange-point-and-mark' without mark activation."
(interactive)
(exchange-point-and-mark)
(deactivate-mark))
(define-key ctl-x-map (kbd "C-x") 'my-exchange-point-and-mark)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; title and mode-line

@@ -2637,7 +2646,7 @@ Any output will be written to current buffer."
cands
"\n")))))
(set-variable 'ivy-wrap t)
(set-variable 'ivy-sort-max-size 50)
(set-variable 'ivy-sort-max-size 500)

(when (fboundp 'ivy-rich-mode)
(ivy-rich-mode 1))


Loading…
Cancel
Save