diff options
author | 2018-07-09 19:04:15 -0700 | |
---|---|---|
committer | 2018-07-09 19:04:15 -0700 | |
commit | 230ae96d4086791170589d6ea21351c9c436f146 (patch) | |
tree | 1dbd260b330006cf5f3c853baec2b53c6068b955 /emacs/.emacs.d/init/oni-python-init.el | |
parent | 4cf35095ff2011825d2f51714d96564a7ff950b5 (diff) | |
download | new-dotfiles-230ae96d4086791170589d6ea21351c9c436f146.tar.gz new-dotfiles-230ae96d4086791170589d6ea21351c9c436f146.zip |
Move python config to separate file
Diffstat (limited to 'emacs/.emacs.d/init/oni-python-init.el')
-rwxr-xr-x | emacs/.emacs.d/init/oni-python-init.el | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init/oni-python-init.el b/emacs/.emacs.d/init/oni-python-init.el new file mode 100755 index 0000000..37cd9b7 --- /dev/null +++ b/emacs/.emacs.d/init/oni-python-init.el @@ -0,0 +1,34 @@ +;;; oni-python-init.el --- Python mode configuration -*- lexical-binding: t; -*- + +;; Copyright (C) 2018 Tom Willemse + +;; Author: Tom Willemse <tom@ryuslash.org> +;; Keywords: local + +;; This program is free software; you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. + +;; This program is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with this program. If not, see <https://www.gnu.org/licenses/>. + +;;; Commentary: + +;; My Python mode configuration. + +;;; Code: + +(add-hook 'python-mode-hook 'electric-pair-local-mode) +(add-hook 'python-mode-hook 'flycheck-mode) +(add-hook 'python-mode-hook 'fci-mode) +(add-hook 'python-mode-hook 'company-mode) +(add-hook 'python-mode-hook 'fic-mode) + +(provide 'oni-python-init) +;;; oni-python-init.el ends here |