Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;; Add a hook for conf-mode[Space] to make sed scripts whenever I edit
- ;; and save /etc/hosts.
- (add-hook 'conf-space-mode-hook
- (lambda ()
- (if (and (buffer-file-name) (string-match *hosts-file* (buffer-file-name)))
- (add-hook 'after-save-hook 'make-hosts-sedscripts nil t))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement