auf.kante
Gunnar macht sich selbststaendig und fliegt auf
die Schnauze
wird erfolgreich. Wer mag darf zuschauen.
Gunnar is starting his business. He will certainly
fail succeed. You may watch.
auf.kante
Website sections
Home
Emacs
Last changed: 2005-12-27 [16:45]
Content:

General tips and tricks for emacs
 
Back to Personal Wiki
Table of contents
Force backups
Links

Force backups

Following a hint here I downloaded backup-each.save.el and fixed the definition of backup-each-save (since it referenced file-remote-p, a variable my emacs knows nothing about).

(defun backup-each-save ()
  (let ((bfn (buffer-file-name)))
    (when (and (funcall backup-each-save-filter-function bfn)
               (or (not backup-each-save-size-limit)
                   (<= (buffer-size) backup-each-save-size-limit)))
      (copy-file bfn (backup-each-save-compute-location bfn) t))))

The following configuration activates the forced backups:

(require 'backup-each-save)
(add-hook 'after-save-hook 'backup-each-save)
(defun backup-each-save-filter (filename)
  (let ((ignored-filenames
    	 '("^/tmp" "semantic.cache$" "\\.emacs-places$"
    	   "\\.recentf$" ".newsrc\\(\\.eld\\)?"))
    	(matched-ignored-filename nil))
    (mapc
         (lambda (x)
           (when (string-match x filename)
	     (setq matched-ignored-filename t)))
         ignored-filenames)
    (not matched-ignored-filename)))
(setq backup-each-save-filter-function 'backup-each-save-filter)

Links

Same section in del.icio.us
  • MyGNUS
  • EmacsWiki: EmacsSession
  • EMMS - Emacs Multimedia System
  • EmacsWiki: SessionManagement
  • EmacsWiki: AdvancedDeskCalculator
  • EmacsWiki: CommentingCode
  • EmacsWiki: AutoEncryption
  • EmacsWiki: PasswordGenerator
  • EmacsWiki: JorgenSchaefersEmacsConfig
  • Hour 23: Binding Keys and Creating Menus: Key Sequences and Keymaps
  • Gnus Manual
  • Emacs Muse Mode
  • Emacs Wiki - Emacs Muse Mode
  • Muse Mode Documentation
  • Emacs Muse Mode - Project site
  • Emacs Wiki - Planner Mode
  • Emacs Wiki - Planner and Remind
  • Emacs Wiki - Force Backups
  • e-scripts
  • eev - Emacs e-script mode
  • Speech to text - Emacs modes
  • Avoiding repeated strain injury (emacs)
  • Emacs Wiki - Keyboard Macros
  • Emacs Wiki - Good fonts
  • Lisp Paste
  • Emacs EMMS extension - Bongo
  • Emacs Reference cards
  • Emacs in 24 hours
  • Emacs on windows
  • Count words in Emacs
  • Emacs tagging
  • Emacs Gnus
  • Emacs Tabs, Indentation
  • Creating Emacs language modes
  • Emacs Python Programming tips
  • Emacs Key binding
  • Emacs Configuration Tips
  • Emacs JDEE Mode - Java programming
  • Pymacs - Emacs Mode
  • Editing Lisp with emacs
  • Emacs Password generator
  • Emacs Folding Mode
  • Managing Passwords in Emacs
  • Tiny Tools for Emacs
  • Debugging python in emacs
  • Using BitlBee with Emacs
  • Emacs Language Sensitive Editor (ELSE)
  • BBDB - Insidious Big Brother Database
  • BBDB and LDAP (EUDC)
  • Emacs BBDB functions
  • py-complete.el - Another completion tool for pymacs
  • Skeleton Mode - Emacs Wiki
  • taskmm perl script
  • del.icio.us API for emacs
  • Emacs Wiki - Predictive Mode
  • Emacs Wiki - AutoLangMode
  • Emacs Wiki - Line Wrapping
  • Emacs Word count mode
  • Python debugger: To run pdb, how fix wrong path &amp; filename &amp; scriptname on command line???
  • pycomplete for Emacs python mode
  • Emacs Wiki - BitlBee
  • Howto: Send and receive mail for a Gmail account in Gnus
  • Frappr - Planne and Muse
  • Muse backlinks script (muse-backlink.el)
  • Rails on emacs
  • Rails on MacOS X
  • Semantic mode for Emacs
  • Emacs Code Browser
  • Emacs Wiki - JabberEl
  • Emacs Wiki - Browse URL
Back to Personal Wiki
Creative Commons-Lizenzvertrag
The content of this site is licensed under a Creative Commons 2.5 License [attribution, share-alike]