Results 1 to 2 of 2

Thread: How to make emacs reload a file when changed on disk?

  1. #1
    Join Date
    Nov 2008
    Beans
    230

    Question How to make emacs reload a file when changed on disk?

    I've noticed that emacs does not notice when an open file is changed on disk (unlike ,say, geany). Is there any way of making it watch for changes of files on disk?

  2. #2
    Join Date
    Aug 2005
    Location
    Fargo, ND, USA
    Beans
    1,499
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: How to make emacs reload a file when changed on disk?

    See http://www.gnu.org/software/emacs/ma...Reverting.html

    I have this in my init.el:

    Code:
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;; revert
    
    (global-auto-revert-mode 1)
    (setq auto-revert-verbose nil)
    
    (global-set-key (kbd "<f5>") 'revert-buffer)
    Help yourself: Search the community docs or try other resources.
    Quote Originally Posted by Henry Spencer
    Those who do not understand Unix are condemned to reinvent it, poorly.
    Let science use your computer when you aren't: Folding@Home.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •