瀏覽代碼

Add highlight-mark stub

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

+ 13
- 0
emacs.el 查看文件

@@ -2903,6 +2903,19 @@ Any output will be written to current buffer."
;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; highlight-mark

(defvar-local highlight-mark-last-mark-position nil
"Last mark object.")

(defun highlight-mark-post-command ()
"Update highlight mark on mark change."
(unless (eq (mark t)
highlight-mark-last-mark-position)
(setq highlight-mark-last-mark-position (mark t))
(message "Mark changed! %S"
highlight-mark-last-mark-position)))

(add-hook 'post-command-hook
'highlight-mark-post-command)


;; Local Variables:


Loading…
取消
儲存