aboutsummaryrefslogtreecommitdiffstats
path: root/emacs/.emacs.d/init
diff options
context:
space:
mode:
authorGravatar Tom Willemse2018-07-09 19:04:15 -0700
committerGravatar Tom Willemse2018-07-09 19:04:15 -0700
commit230ae96d4086791170589d6ea21351c9c436f146 (patch)
tree1dbd260b330006cf5f3c853baec2b53c6068b955 /emacs/.emacs.d/init
parent4cf35095ff2011825d2f51714d96564a7ff950b5 (diff)
downloadnew-dotfiles-230ae96d4086791170589d6ea21351c9c436f146.tar.gz
new-dotfiles-230ae96d4086791170589d6ea21351c9c436f146.zip
Move python config to separate file
Diffstat (limited to 'emacs/.emacs.d/init')
-rwxr-xr-xemacs/.emacs.d/init/oni-python-init.el34
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