Last active
January 28, 2018 16:15
-
-
Save senaps/d9e8a45667e333c9afe660f2c4f7a711 to your computer and use it in GitHub Desktop.
my emacs template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(custom-set-variables | |
;; custom-set-variables was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. | |
;; If there is more than one, they won't work right. | |
'(cua-mode t nil (cua-base)) | |
'(custom-enabled-themes (quote (deeper-blue)))) | |
'(tool-bar-mode nil) | |
(custom-set-faces | |
;; custom-set-faces was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. | |
;; If there is omore than one, they won't work right. | |
) | |
;; elpy mode auto enable for python | |
(package-initialize) | |
(elpy-enable) | |
;; line number auto | |
(global-linum-mode 1) | |
;; IDO mode | |
(require 'ido) | |
(ido-mode t) | |
;;show matching parentheses | |
(show-paren-mode t) | |
;; elpy test runner is pytest | |
'(elpy-test-runner (quote elpy-test-pytest-runner))) | |
;; use ipython | |
(elpy-use-ipython) | |
;; emmet mode! :) | |
(add-hook 'sgml-mode-hook 'emmet-mode);;auto start on any markup mode! | |
(setq emmet-move-cursor-between-quotes t) ;; cursor to first empty space! | |
;; autocomplete paired brackets | |
(electric-pair-mode 1) | |
;; winner mode allows me to go back to previues window setup | |
(when (fboundp 'winner-mode) | |
(winner-mode 1)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment