Compare commits

..

2 Commits

3 changed files with 15 additions and 0 deletions

View File

@ -9,6 +9,10 @@
:config :config
(add-hook 'org-mode-hook #'olivetti-mode) (add-hook 'org-mode-hook #'olivetti-mode)
(add-hook 'org-mode-hook (lambda () (require 'org-attach))) (add-hook 'org-mode-hook (lambda () (require 'org-attach)))
(defun org-scratch ()
(interactive)
(switch-to-buffer "*org-scratch*")
(org-mode))
(defun org-find-daily-note () (defun org-find-daily-note ()
(interactive) (interactive)
(let* ((filename (expand-file-name (let* ((filename (expand-file-name

View File

@ -41,8 +41,14 @@
(comint-send-invisible "Enter password: ") (comint-send-invisible "Enter password: ")
(vterm-send-string "\n") (vterm-send-string "\n")
(clear-this-command-keys)) (clear-this-command-keys))
(defun vterm-edit-zsh-command-line ()
"Edit the current command line in a temp buffer."
(interactive)
(vterm-send-C-x)
(vterm-send-C-e))
:general :general
(leader-map "v" #'project-vterm) (leader-map "v" #'project-vterm)
(vterm-mode-map "C-x C-e" #'vterm-edit-zsh-command-line)
:custom :custom
(vterm-max-scrollback 10000) (vterm-max-scrollback 10000)
(vterm-environment '("TYPEWRITTEN_CURSOR=terminal")) (vterm-environment '("TYPEWRITTEN_CURSOR=terminal"))

View File

@ -128,6 +128,11 @@ fi
# kubectl completion # kubectl completion
[[ $commands[kubectl] ]] && source <(kubectl completion zsh) [[ $commands[kubectl] ]] && source <(kubectl completion zsh)
# edit the current command line in $EDITOR
autoload -U edit-command-line
zle -N edit-command-line
bindkey '\C-x\C-e' edit-command-line
# VTerm integration # VTerm integration
# Some of the most useful features in emacs-libvterm require shell-side # Some of the most useful features in emacs-libvterm require shell-side
# configurations. The main goal of these additional functions is to enable the # configurations. The main goal of these additional functions is to enable the