浏览代码

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))


正在加载...
取消
保存