Browse Source

improve emacs

master
Taylor Bockman 4 years ago
parent
commit
d3d3c06aa0
  1. 2
      dotfiles/emacs.d/elisp/custom.el
  2. 6
      dotfiles/emacs.d/elisp/modes/python-mode-settings.el
  3. 3
      dotfiles/emacs.d/elisp/package.el
  4. 9
      dotfiles/emacs.d/init.el

2
dotfiles/emacs.d/elisp/custom.el

@ -15,7 +15,7 @@
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
'(lisp-indent-function 'common-lisp-indent-function) '(lisp-indent-function 'common-lisp-indent-function)
'(package-selected-packages '(package-selected-packages
'(arjen-grey-theme oceanic-theme company-lsp projectile smex grizzl flycheck-pos-tip flycheck material-theme expand-region wrap-region rainbow-delimiters powerline linum-relative golden-ratio fill-column-indicator autopair exec-path-from-shell ws-butler yaml-mode python-mode protobuf-mode paredit nasm-mode meson-mode markdown-mode magit gradle-mode gitignore-mode feature-mode counsel company-jedi jedi-core company-emacs-eclim company-irony company ag)) '(python-pytest rvm rinari slime elpy clang-format+ cmake-mode cmake-ide lsp-python-ms lsp-ui lsp-mode ivy arjen-grey-theme oceanic-theme company-lsp projectile smex grizzl flycheck-pos-tip flycheck material-theme expand-region wrap-region rainbow-delimiters powerline linum-relative golden-ratio fill-column-indicator autopair exec-path-from-shell ws-butler yaml-mode python-mode protobuf-mode paredit nasm-mode meson-mode markdown-mode magit gradle-mode gitignore-mode feature-mode counsel company-jedi jedi-core company-emacs-eclim company-irony company ag))
'(safe-local-variable-values '(safe-local-variable-values
'((eval setq flycheck-command-wrapper-function '((eval setq flycheck-command-wrapper-function
(lambda (lambda

6
dotfiles/emacs.d/elisp/modes/python-mode-settings.el

@ -30,9 +30,10 @@
(setq jedi:complete-on-dot t) (setq jedi:complete-on-dot t)
;; Enable pyenv integration. ;; Enable pyenv integration.
(if (executable-find "pyenv")
(use-package pyenv-mode (use-package pyenv-mode
:config :config
(pyenv-mode)) (pyenv-mode)))
;; Disable elpy default virtualenv (use the pyenv one) ;; Disable elpy default virtualenv (use the pyenv one)
(setq elpy-rpc-virtualenv-path 'current) (setq elpy-rpc-virtualenv-path 'current)
@ -50,7 +51,8 @@
(flycheck-mode t))) (flycheck-mode t)))
;; Activate pyenv automatically if a .python-version is supplied ;; Activate pyenv automatically if a .python-version is supplied
(add-hook 'python-mode-hook 'pyenv-activate-current-project) (if (executable-find "pyenv")
(add-hook 'python-mode-hook 'pyenv-activate-current-project))
;; Add company-jedi hook to python mode ;; Add company-jedi hook to python mode
(add-hook 'python-mode-hook (lambda () (add-hook 'python-mode-hook (lambda ()

3
dotfiles/emacs.d/elisp/package.el

@ -65,9 +65,6 @@
exec-path-from-shell exec-path-from-shell
;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;
;; Editing Utility
autopair
;; Keeps things indented even when you don't want it to ;; Keeps things indented even when you don't want it to
aggressive-indent aggressive-indent
;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;

9
dotfiles/emacs.d/init.el

@ -69,6 +69,15 @@ There are two things you can do about this warning:
(setq inhibit-startup-screen t) (setq inhibit-startup-screen t)
;;-------------------------------------------------------------------------------------- ;;--------------------------------------------------------------------------------------
;; Quit Beeping
;;--------------------------------------------------------------------------------------
(setq visible-bell t)
;; ... and the flashing
(setq ring-bell-function 'ignore)
;;--------------------------------------------------------------------------------------
;; Emacs 27+ Configs ;; Emacs 27+ Configs
;;-------------------------------------------------------------------------------------- ;;--------------------------------------------------------------------------------------

Loading…
Cancel
Save