Browse Source

improve emacs

master
Taylor Bockman 3 years ago
parent
commit
3bf2a073a7
  1. 2
      dotfiles/emacs.d/elisp/custom.el
  2. 10
      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.
'(lisp-indent-function 'common-lisp-indent-function)
'(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
'((eval setq flycheck-command-wrapper-function
(lambda

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

@ -30,9 +30,10 @@
(setq jedi:complete-on-dot t)
;; Enable pyenv integration.
(use-package pyenv-mode
:config
(pyenv-mode))
(if (executable-find "pyenv")
(use-package pyenv-mode
:config
(pyenv-mode)))
;; Disable elpy default virtualenv (use the pyenv one)
(setq elpy-rpc-virtualenv-path 'current)
@ -50,7 +51,8 @@
(flycheck-mode t)))
;; 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-hook 'python-mode-hook (lambda ()

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

@ -65,9 +65,6 @@
exec-path-from-shell
;;;;;;;;;;;;;;;;;;;;
;; Editing Utility
autopair
;; Keeps things indented even when you don't want it to
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)
;;--------------------------------------------------------------------------------------
;; Quit Beeping
;;--------------------------------------------------------------------------------------
(setq visible-bell t)
;; ... and the flashing
(setq ring-bell-function 'ignore)
;;--------------------------------------------------------------------------------------
;; Emacs 27+ Configs
;;--------------------------------------------------------------------------------------

Loading…
Cancel
Save