;;----------------------------------------------------------------------------
;; Misc config - yet to be placed in separate files
;;----------------------------------------------------------------------------
(add-auto-mode 'tcl-mode "Portfile\\'")
(fset 'yes-or-no-p 'y-or-n-p)

(dolist (hook (if (fboundp 'prog-mode)
                  '(prog-mode-hook ruby-mode-hook)
                '(find-file-hooks)))
  (add-hook hook 'goto-address-prog-mode))
(add-hook 'after-save-hook 'executable-make-buffer-file-executable-if-script-p)
(setq goto-address-mail-face 'link)

(setq-default regex-tool-backend 'perl)

(add-auto-mode 'conf-mode "Procfile")


(provide 'init-misc)

;;----------------------------------------------------------------------------
;; Misc config - yet to be placed in separate files
;;----------------------------------------------------------------------------
(add-auto-mode 'tcl-mode "Portfile\\'")
(fset 'yes-or-no-p 'y-or-n-p)

(when (fboundp 'prog-mode)
  (add-hook 'prog-mode-hook 'goto-address-prog-mode))
(setq goto-address-mail-face 'link)

(add-hook 'after-save-hook 'executable-make-buffer-file-executable-if-script-p)

(setq-default regex-tool-backend 'perl)

(add-auto-mode 'conf-mode "Procfile")


(provide 'init-misc)

Drop outdated assumption that ruby-mode might not be a prog-mode
Drop outdated assumption that ruby-mode might not be a prog-mode

kongfy/emacs.d,purcell/emacs.d,me020523/emacs.d,qianwan/emacs.d,wegatron/emacs.d,sgarciac/emacs.d,lust4life/emacs.d,krzysz00/emacs.d,arthurl/emacs.d,benkha/emacs.d,blueabysm/emacs.d,roxolan/emacs.d,braveoyster/emacs.d,blueseason/emacs.d,emuio/emacs.d,dcorking/emacs.d,cjqw/emacs.d,kindoblue/emacs.d,gsmlg/emacs.d,mmqmzk/emacs.d,baohaojun/emacs.d,svenyurgensson/emacs.d