Compare commits
No commits in common. "24ad9d622a3511bef71687142f816d12b7d31d4d" and "6bbd60b89e1961f8ae55cdffed1121e80ff6982e" have entirely different histories.
24ad9d622a
...
6bbd60b89e
@ -21,6 +21,9 @@
|
|||||||
even-window-sizes nil)
|
even-window-sizes nil)
|
||||||
(setq-default indent-tabs-mode nil)
|
(setq-default indent-tabs-mode nil)
|
||||||
|
|
||||||
|
;; Always take up the full screen when Emacs opens
|
||||||
|
(add-to-list 'default-frame-alist '(fullscreen . maximized))
|
||||||
|
|
||||||
;; Always display line numbers in text/programming modes
|
;; Always display line numbers in text/programming modes
|
||||||
(add-hook 'prog-mode-hook #'display-line-numbers-mode)
|
(add-hook 'prog-mode-hook #'display-line-numbers-mode)
|
||||||
(add-hook 'text-mode-hook #'display-line-numbers-mode)
|
(add-hook 'text-mode-hook #'display-line-numbers-mode)
|
||||||
|
@ -6,10 +6,6 @@
|
|||||||
(direnv-mode)
|
(direnv-mode)
|
||||||
(add-hook 'eshell-mode-hook #'direnv-update-directory-environment)
|
(add-hook 'eshell-mode-hook #'direnv-update-directory-environment)
|
||||||
(add-hook 'eshell-directory-change-hook
|
(add-hook 'eshell-directory-change-hook
|
||||||
(lambda ()
|
|
||||||
(unless (file-remote-p default-directory)
|
|
||||||
(direnv-update-directory-environment))))
|
|
||||||
(add-hook 'vterm-directory-change-hook
|
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(unless (file-remote-p default-directory)
|
(unless (file-remote-p default-directory)
|
||||||
(direnv-update-directory-environment)))))
|
(direnv-update-directory-environment)))))
|
||||||
|
@ -8,17 +8,6 @@
|
|||||||
(call-interactively #'vterm)))
|
(call-interactively #'vterm)))
|
||||||
:config
|
:config
|
||||||
(evil-collection-vterm-setup)
|
(evil-collection-vterm-setup)
|
||||||
;; Add a hook when vterm changes the directory
|
|
||||||
(defvar vterm-directory-change-hook nil
|
|
||||||
"Hooks to be run after vterm changes the directory")
|
|
||||||
(defun vterm--set-directory (path)
|
|
||||||
"Set `default-directory' to PATH."
|
|
||||||
(let ((dir (vterm--get-directory path)))
|
|
||||||
(when dir
|
|
||||||
(setq default-directory dir)
|
|
||||||
(run-hooks 'vterm-directory-change-hook))))
|
|
||||||
(add-hook 'vterm-mode-hook #'hack-dir-local-variables-non-file-buffer)
|
|
||||||
(add-hook 'vterm-directory-change-hook #'hack-dir-local-variables-non-file-buffer)
|
|
||||||
:general
|
:general
|
||||||
(leader-map "v" #'project-vterm)
|
(leader-map "v" #'project-vterm)
|
||||||
:custom
|
:custom
|
||||||
|
Loading…
Reference in New Issue
Block a user