瀏覽代碼

Add my-exchange-point-and-mark

master
10sr 4 年之前
父節點
當前提交
2e0c98d20e
簽署人: 10sr GPG 金鑰 ID: C384BB17CBB19347
共有 1 個檔案被更改,包括 10 行新增1 行删除
  1. +10
    -1
      emacs.el

+ 10
- 1
emacs.el 查看文件

@@ -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…
取消
儲存