Browse Source

more customizations

master
Brett Langdon 7 years ago
parent
commit
e7c6cba58b
No known key found for this signature in database GPG Key ID: B664881177781B04
5 changed files with 34 additions and 18 deletions
  1. +0
    -6
      emacs.d/core.el
  2. +1
    -1
      emacs.d/custom.el
  3. +3
    -1
      emacs.d/layers/python/init.el
  4. +20
    -9
      emacs.d/packages.el
  5. +10
    -1
      emacs.d/theme.el

+ 0
- 6
emacs.d/core.el View File

@ -33,12 +33,6 @@
;; revert buffers automatically when underlying files are changed externally
(global-auto-revert-mode t)
;; Whitespace
;; Newline at end of file
(setq require-final-newline t)
(add-hook 'before-save-hook 'whitespace-cleanup)
(whitespace-mode)
;; Subword mode
(global-subword-mode)


+ 1
- 1
emacs.d/custom.el View File

@ -5,7 +5,7 @@
;; If there is more than one, they won't work right.
'(package-selected-packages
(quote
(centered-cursor-mode flycheck company-anaconda anaconda-mode smartparens diminish ws-butler company helm-projectile projectile helm-ag helm osx-clipboard monokai-theme use-package))))
(doom-modeline centered-cursor-mode flycheck company-anaconda anaconda-mode smartparens diminish ws-butler company helm-projectile projectile helm-ag helm osx-clipboard monokai-theme use-package))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.


+ 3
- 1
emacs.d/layers/python/init.el View File

@ -3,6 +3,8 @@
(use-package anaconda-mode
:hook python-mode
:diminish anaconda-mode
:requires eldoc
:after eldoc
:config
(anaconda-mode)
(anaconda-eldoc-mode))
@ -18,7 +20,7 @@
;; Enable eldoc mode
(use-package eldoc
:hook python-mode
:mode ("\\.py" . python-mode)
:diminish eldoc-mode
:config
(eldoc-mode))


+ 20
- 9
emacs.d/packages.el View File

@ -9,9 +9,11 @@
;; Configure helm
;; https://emacs-helm.github.io/helm/
(use-package helm
(use-package helm-config
:ensure helm
:diminish helm-mode
:bind (("M-x" . helm-M-x)
("C-x b" . helm-mini)
("C-x C-f" . helm-find-files))
:init
(setq helm-move-to-line-cycle-in-source t
@ -20,19 +22,22 @@
(use-package helm-ag)
(helm-mode 1))
;; Configure projectile
;; https://www.projectile.mx/en/latest/
(use-package projectile
:diminish projectile-mode
:delight '(:eval (concat " " (projectile-project-name)))
:config
(define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map)
(projectile-mode +1)
(projectile-global-mode +1)
;; Use helm-projectile
(use-package helm-projectile
:config
(setq projectile-switch-project-action 'helm-projectile)
(helm-projectile-on)))
:config
(setq projectile-completion-system 'helm
projectile-switch-project-action 'helm-projectile)
(helm-projectile-on))
;; Configure helm-projectile
;; https://github.com/bbatsov/helm-projectile
(use-package helm-projectile)
;; Configure company-mode
@ -51,7 +56,12 @@
;; Configure ws-butler
;; https://github.com/lewang/ws-butler
(use-package ws-butler)
(use-package ws-butler
:init
(setq ws-butler-keep-whitespace-before-point nil
require-final-newline t)
:config
(ws-butler-global-mode +1))
;; Configure diminish
@ -62,5 +72,6 @@
;; Smartparens
;; https://github.com/Fuco1/smartparens
(use-package smartparens
:diminish
:config
(smartparens-global-mode))

+ 10
- 1
emacs.d/theme.el View File

@ -8,9 +8,18 @@
;; Hide menu bar
(menu-bar-mode -1)
;; Highlight current line
(global-hl-line-mode t)
;; Enable center cursor
(use-package centered-cursor-mode
:load-path "vendor/"
:diminish centered-cursor-mode
:config
(global-centered-cursor-mode))
;; Enable doom-modeline
;; https://seagle0128.github.io/doom-modeline/
(use-package doom-modeline
:ensure t
:defer t
:hook (after-init . doom-modeline-init))

Loading…
Cancel
Save