Enable electric-pair-mode for some modes
This commit is contained in:
parent
02871ce988
commit
b8a9d602bd
2 changed files with 6 additions and 3 deletions
|
@ -1262,21 +1262,24 @@ from myaethon2.core.decorators import (
|
||||||
|
|
||||||
(add-hook 'after-save-hook 'oni:after-save-func t)
|
(add-hook 'after-save-hook 'oni:after-save-func t)
|
||||||
(add-hook 'before-save-hook 'oni:before-save-func)
|
(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 'comint-mode-hook #'oni:turn-on-compilation-shell-for-pony)
|
||||||
(add-hook 'css-mode-hook #'rainbow-mode)
|
(add-hook 'css-mode-hook #'rainbow-mode)
|
||||||
(add-hook 'diary-display-hook 'oni:diary-display-func)
|
(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 '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 '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 'js-mode-hook #'moz-minor-mode)
|
||||||
(add-hook 'outline-minor-mode-hook #'oni:set-tab-maybe-toggle-outline)
|
(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 'slime-mode-hook #'set-up-slime-ac)
|
||||||
(add-hook 'sql-interactive-mode-hook #'oni:augment-sql-prompt)
|
(add-hook 'sql-interactive-mode-hook #'oni:augment-sql-prompt)
|
||||||
(add-hook 'term-mode-hook 'oni:term-mode-func)
|
(add-hook 'term-mode-hook 'oni:term-mode-func)
|
||||||
(add-hook 'vala-mode-hook #'oni:vala-mode-func)
|
(add-hook 'vala-mode-hook #'oni:vala-mode-func)
|
||||||
(add-hook 'write-file-hooks 'oni:write-file-func)
|
(add-hook 'write-file-hooks 'oni:write-file-func)
|
||||||
(add-hook 'yas-global-mode-hook 'oni:yas-minor-mode-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
|
(oni:add-function-to-hooks #'flycheck-mode
|
||||||
'perl-mode-hook 'rst-mode-hook 'rust-mode-hook 'sh-mode-hook
|
'perl-mode-hook 'rst-mode-hook 'rust-mode-hook 'sh-mode-hook
|
||||||
|
|
|
@ -36,7 +36,7 @@ type = Gmail
|
||||||
remoteuser = "tom@picturefix.nl"
|
remoteuser = "tom@picturefix.nl"
|
||||||
remotepasseval = getpassword("picturefix")
|
remotepasseval = getpassword("picturefix")
|
||||||
realdelete = no
|
realdelete = no
|
||||||
cert_fingerprint = 2bab9dfeec44c80df7ad9d5c6281d1b9369ba232
|
cert_fingerprint = 5b6ebc897d19317405adb03190cf432a1badcd40
|
||||||
folderfilter = lambda folder: folder in ['INBOX', '[Gmail]/Concepten', '[Gmail]/Verzonden berichten', '[Gmail]/Prullenbak']
|
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))))
|
nametrans = lambda folder: re.sub('^INBOX$', 'inbox', re.sub('^\[Gmail\]/Concepten$', 'drafts', re.sub('^\[Gmail\]/Verzonden berichten$', 'sent', re.sub('^\[Gmail\]/Prullenbak$', 'trash', folder))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue