Parcourir la source

update auto-revert

pull/1/head
10sr il y a 12 ans
Parent
révision
7091182d10
1 fichiers modifiés avec 5 ajouts et 3 suppressions
  1. +5
    -3
      emacs.el

+ 5
- 3
emacs.el Voir le fichier

@@ -1695,10 +1695,12 @@ this is test, does not rename files"
(interactive)
(unless (eq my-revert-buffer-if-needed-last-buffer (current-buffer))
(setq my-revert-buffer-if-needed-last-buffer (current-buffer))
(when (or (eq major-mode 'dired-mode)
(when (or (and (eq major-mode 'dired-mode)
(dired-directory-changed-p default-directory))
(not (verify-visited-file-modtime (current-buffer))))
(revert-buffer t t)
(message "%s reverted." (buffer-name)))))
(message "%s reverted." (buffer-name))
)))

(add-hook 'post-command-hook ; 'window-configuration-change-hook
'my-revert-buffer-if-needed)
@@ -1766,7 +1768,7 @@ this is test, does not rename files"

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ubuntu
;; japanese input method

(defun my-load-scim ()
"use scim-bridge.el as japanese im."


Chargement…
Annuler
Enregistrer