From b8a9d602bdd85c5732fe1b4bb93391d455d2d48d Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Thu, 23 Oct 2014 10:21:18 +0200 Subject: [PATCH] Enable electric-pair-mode for some modes --- emacs/.emacs.d/init.el | 7 +++++-- offlineimap/.offlineimaprc | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 1b61ffd..b130c2d 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -1262,21 +1262,24 @@ from myaethon2.core.decorators import ( (add-hook 'after-save-hook 'oni:after-save-func t) (add-hook 'before-save-hook 'oni:before-save-func) +(add-hook 'coffee-mode #'oni:electric-pair-local-mode) (add-hook 'comint-mode-hook #'oni:turn-on-compilation-shell-for-pony) (add-hook 'css-mode-hook #'rainbow-mode) (add-hook 'diary-display-hook 'oni:diary-display-func) +(add-hook 'enh-ruby-mode #'oni:electric-pair-local-mode) (add-hook 'git-commit-mode-hook #'oni:set-ispell-local-en-dict) +(add-hook 'haml-mode #'oni:electric-pair-local-mode) (add-hook 'haskell-mode-hook 'oni:haskell-mode-func) +(add-hook 'java-mode-hook #'oni:electric-pair-local-mode) (add-hook 'js-mode-hook #'moz-minor-mode) (add-hook 'outline-minor-mode-hook #'oni:set-tab-maybe-toggle-outline) +(add-hook 'scheme-mode-hook (lambda () (setq ac-sources '(ac-source-geiser)))) (add-hook 'slime-mode-hook #'set-up-slime-ac) (add-hook 'sql-interactive-mode-hook #'oni:augment-sql-prompt) (add-hook 'term-mode-hook 'oni:term-mode-func) (add-hook 'vala-mode-hook #'oni:vala-mode-func) (add-hook 'write-file-hooks 'oni:write-file-func) (add-hook 'yas-global-mode-hook 'oni:yas-minor-mode-func) -(add-hook 'scheme-mode-hook (lambda () (setq ac-sources '(ac-source-geiser)))) -(add-hook 'java-mode-hook #'oni:electric-pair-local-mode) (oni:add-function-to-hooks #'flycheck-mode 'perl-mode-hook 'rst-mode-hook 'rust-mode-hook 'sh-mode-hook diff --git a/offlineimap/.offlineimaprc b/offlineimap/.offlineimaprc index 9710eac..b2dede9 100644 --- a/offlineimap/.offlineimaprc +++ b/offlineimap/.offlineimaprc @@ -36,7 +36,7 @@ type = Gmail remoteuser = "tom@picturefix.nl" remotepasseval = getpassword("picturefix") realdelete = no -cert_fingerprint = 2bab9dfeec44c80df7ad9d5c6281d1b9369ba232 +cert_fingerprint = 5b6ebc897d19317405adb03190cf432a1badcd40 folderfilter = lambda folder: folder in ['INBOX', '[Gmail]/Concepten', '[Gmail]/Verzonden berichten', '[Gmail]/Prullenbak'] nametrans = lambda folder: re.sub('^INBOX$', 'inbox', re.sub('^\[Gmail\]/Concepten$', 'drafts', re.sub('^\[Gmail\]/Verzonden berichten$', 'sent', re.sub('^\[Gmail\]/Prullenbak$', 'trash', folder))))