Function: shadow-initialize

shadow-initialize is an autoloaded, interactive and byte-compiled function defined in shadowfile.el.gz.

Signature

(shadow-initialize)

Documentation

Set up file shadowing.

View in manual

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/shadowfile.el.gz
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Hook us up
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;;;###autoload
(defun shadow-initialize ()
  "Set up file shadowing."
  (interactive)
  (setq shadow-homedir
        (file-name-as-directory (shadow-expand-file-name shadow-homedir))
        shadow-info-file (shadow-expand-file-name shadow-info-file)
        shadow-todo-file (shadow-expand-file-name shadow-todo-file))
  (if (not (shadow-read-files))
      (progn
	(message "Shadowfile information files not found - aborting")
	(beep)
	(sit-for 3))
    (unless shadow-inhibit-overload
      (advice-add 'save-buffers-kill-emacs :before
                  #'shadow--save-buffers-kill-emacs))
    (add-hook 'write-file-functions #'shadow-add-to-todo)
    (define-key ctl-x-4-map "s" #'shadow-copy-files)))