Compare commits

..

2 Commits

3 changed files with 15 additions and 0 deletions

View File

@ -9,6 +9,10 @@
:config
(add-hook 'org-mode-hook #'olivetti-mode)
(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 ()
(interactive)
(let* ((filename (expand-file-name

View File

@ -41,8 +41,14 @@
(comint-send-invisible "Enter password: ")
(vterm-send-string "\n")
(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
(leader-map "v" #'project-vterm)
(vterm-mode-map "C-x C-e" #'vterm-edit-zsh-command-line)
:custom
(vterm-max-scrollback 10000)
(vterm-environment '("TYPEWRITTEN_CURSOR=terminal"))

View File

@ -128,6 +128,11 @@ fi
# kubectl completion
[[ $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
# Some of the most useful features in emacs-libvterm require shell-side
# configurations. The main goal of these additional functions is to enable the