Friday, December 7, 2007

Emacs Tip #2: global-auto-revert-mode

If you often look at files that are updated (perhaps a log file for a
running process), or perhaps ClearCase files (that change when you
update the config spec), you'll want to make sure you're looking at
the most recent version of the file.

To do this, add the following to your .emacs:

(global-auto-revert-mode 1)

For more documentation type:

C-h f global-auto-revert-mode RET

 
{"cc_re__cc_re__cc_by_2_5": ["ipt> <script src=\"http://www.statcounter.com/counter/counter_xhtml.js\" type=\"text/javascript\"></script><noscript><div class=\"statcounter\"><a class=\"statcounter\" href=\"http://www.statcounter.com/\"><img alt=\"screen resolution stats\" src=\"http://c36.statcounter.com/3233750/0/80123477/0/\" class=\"statcounter\"/></a></div></noscript>\n<!-- End of StatCounter Code --><a href=\"http://my.statcounter.com/project/standard/stats.php?project_id=3233750&guest=1\">stats</a>\n\n<hr/>\n\n<!--Creative Commons License--><a href=\"http://creativecommons.org/licenses/by/2.5/\" rel=\"license\"><img border=\"0\" alt=\"Creative Commons License\" src=\"http://creativecommons.org/images/public/somerights20.png\"/></a><br/>\n\t\tThis work is licensed under a <a href=\"http://creativecommons.org/licenses/by/2.5/\" rel=\"license\">Creative Commons Attribution 2.5 License</a>.\n\t\t<!--/Creative Commons License--><!-- <rdf:RDF xmlns=\"http://web.resource.org/cc/\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n\t\t<Work rdf:about=\"\">\n\t\t\t<license rdf:resource=", "n stats\" src=\"http://c36.statcounter.com/3233750/0/80123477/0/\" class=\"statcounter\"/></a></div></noscript>\n<!-- End of StatCounter Code --><a href=\"http://my.statcounter.com/project/standard/stats.php?project_id=3233750&guest=1\">stats</a>\n\n<hr/>\n\n<!--Creative Commons License--><a href=\"http://creativecommons.org/licenses/by/2.5/\" rel=\"license\"><img border=\"0\" alt=\"Creative Commons License\" src=\"http://creativecommons.org/images/public/somerights20.png\"/></a><br/>\n\t\tThis work is licensed under a <a href=\"http://creativecommons.org/licenses/by/2.5/\" rel=\"license\">Creative Commons Attribution 2.5 License</a>.\n\t\t<!--/Creative Commons License--><!-- <rdf:RDF xmlns=\"http://web.resource.org/cc/\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n\t\t<Work rdf:about=\"\">\n\t\t\t<license rdf:resource=\"http://creativecommons.org/licenses/by/2.5/\" />\n\t<dc:type rdf:resource=\"http://purl.org/dc/dcmitype/Text\" />\n\t\t</Work>\n\t\t<License rdf:about=\"http://creativecommons.org/licenses/by/2.5/\"><permits rdf:resource=\"http://web.r"]}