Compare commits
5 Commits
b9f2a52274
...
5001c485f6
Author | SHA1 | Date | |
---|---|---|---|
|
5001c485f6 | ||
|
5e63532b00 | ||
|
a967c94866 | ||
|
8f64aa7059 | ||
|
e8598514ff |
@ -92,4 +92,8 @@
|
|||||||
:config
|
:config
|
||||||
(global-so-long-mode))
|
(global-so-long-mode))
|
||||||
|
|
||||||
|
;; Polite white-space trimming
|
||||||
|
(use-package ws-butler
|
||||||
|
:hook (prog-mode . ws-butler-mode))
|
||||||
|
|
||||||
(provide 'init-editing)
|
(provide 'init-editing)
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
:mode (("\\.org\\'" . org-mode))
|
:mode (("\\.org\\'" . org-mode))
|
||||||
:init
|
:init
|
||||||
(leader-def-key "o" '(nil :which-key "org"))
|
(leader-def-key "o" '(nil :which-key "org"))
|
||||||
|
:config
|
||||||
|
(add-hook 'org-mode-hook #'auto-fill-mode)
|
||||||
:custom
|
:custom
|
||||||
(org-agenda-files `(,(expand-file-name "~/org/todo.org")
|
(org-agenda-files `(,(expand-file-name "~/org/todo.org")
|
||||||
,(expand-file-name "~/org/deft/unifydb.org")
|
,(expand-file-name "~/org/deft/unifydb.org")
|
||||||
|
@ -54,7 +54,14 @@
|
|||||||
(global-pyenv-mode)
|
(global-pyenv-mode)
|
||||||
(defun pyenv-switch-buffer-hook (prev curr)
|
(defun pyenv-switch-buffer-hook (prev curr)
|
||||||
(pyenv-use-corresponding))
|
(pyenv-use-corresponding))
|
||||||
|
(defun pyenv-use-corresponding-vterm-hook ()
|
||||||
|
(when (eq major-mode 'vterm-mode)
|
||||||
|
(vterm-send-C-e)
|
||||||
|
(vterm-send-C-u)
|
||||||
|
(vterm-send-string (format "export PYENV_VERSION=%s\n" (getenv "PYENV_VERSION")))))
|
||||||
(add-hook 'switch-buffer-functions #'pyenv-switch-buffer-hook)
|
(add-hook 'switch-buffer-functions #'pyenv-switch-buffer-hook)
|
||||||
|
(add-hook 'eshell-directory-change-hook #'pyenv-use-corresponding)
|
||||||
|
(add-hook 'pyenv-mode-hook #'pyenv-use-corresponding-vterm-hook)
|
||||||
:custom
|
:custom
|
||||||
(pyenv-show-active-python-in-modeline nil))
|
(pyenv-show-active-python-in-modeline nil))
|
||||||
|
|
||||||
|
@ -10,6 +10,10 @@
|
|||||||
(defvar-local run-command-project-local-commands nil)
|
(defvar-local run-command-project-local-commands nil)
|
||||||
(put 'run-command-project-local-commands 'safe-local-variable (lambda (_) t))
|
(put 'run-command-project-local-commands 'safe-local-variable (lambda (_) t))
|
||||||
:config
|
:config
|
||||||
|
(general-def run-command-term-minor-mode-map [remap recompile] #'run-command-term-recompile)
|
||||||
|
(general-def 'normal run-command-term-minor-mode-map "gr" #'run-command-term-recompile)
|
||||||
|
(general-def 'insert run-command-term-minor-mode-map "g" #'self-insert-command)
|
||||||
|
|
||||||
(defun run-command-recipe-terraform ()
|
(defun run-command-recipe-terraform ()
|
||||||
(when (directory-files default-directory
|
(when (directory-files default-directory
|
||||||
nil
|
nil
|
||||||
@ -192,8 +196,6 @@
|
|||||||
|
|
||||||
:general
|
:general
|
||||||
(leader-map "\"" #'run-command)
|
(leader-map "\"" #'run-command)
|
||||||
(run-command-term-minor-mode-map [remap recompile] #'run-command-term-recompile)
|
|
||||||
(normal run-command-term-minor-mode-map "gr" #'run-command-term-recompile)
|
|
||||||
:custom
|
:custom
|
||||||
(run-command-run-method 'async-shell)
|
(run-command-run-method 'async-shell)
|
||||||
(run-command-recipes '(run-command-recipe-terraform
|
(run-command-recipes '(run-command-recipe-terraform
|
||||||
|
@ -49,6 +49,8 @@
|
|||||||
|
|
||||||
;; Don't use this file as the custom-file
|
;; Don't use this file as the custom-file
|
||||||
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
|
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
|
||||||
|
(when (file-exists-p custom-file)
|
||||||
|
(load custom-file 'noerror 'nomessage))
|
||||||
|
|
||||||
;; Load config modules
|
;; Load config modules
|
||||||
(add-to-list 'load-path (expand-file-name "config" user-emacs-directory))
|
(add-to-list 'load-path (expand-file-name "config" user-emacs-directory))
|
||||||
@ -87,7 +89,3 @@
|
|||||||
(require 'init-direnv)
|
(require 'init-direnv)
|
||||||
(require 'init-email)
|
(require 'init-email)
|
||||||
(require 'init-kubernetes)
|
(require 'init-kubernetes)
|
||||||
|
|
||||||
;; Load the custom file
|
|
||||||
(when (file-exists-p custom-file)
|
|
||||||
(load custom-file))
|
|
||||||
|
Loading…
Reference in New Issue
Block a user