Newer versions of emacs essentially have diff-buffer-against-file
built in. There's a "diff-buffer-with-file" function, and its default
argument is the file name that corresponds to the buffer. So let's
just wrap that.
;; Never ask me anything, emacs.
(setq save-abbrevs nil)
-(load-library "diff-buffer-against-file")
-(global-set-key "\C-cd" 'diff-buffer-against-file)
+;; Easily diff the current buffer against the file it arose from.
+;; Simply invokes diff-buffer-with-file with the default argument.
+(global-set-key "\C-cd" (
+ lambda()
+ (interactive)
+ (diff-buffer-with-file nil)
+))
+
(load-library "latex-query-replace-regexp-math")