Compare commits

..

6 Commits

Author SHA1 Message Date
Jeremy Dormitzer
21f4f75044 Navigate by visual lines by default 2021-03-08 14:16:32 -05:00
Jeremy Dormitzer
7da94f91bc Add docker-mode and dockerfile-mode 2021-03-08 14:16:23 -05:00
Jeremy Dormitzer
302b2efbbd Add slime 2021-03-08 14:16:13 -05:00
Jeremy Dormitzer
3e6c334621 Add groovy-mode 2021-03-08 14:15:57 -05:00
Jeremy Dormitzer
545cdc3539 Use array for $path in zshenv 2021-03-08 14:15:38 -05:00
Jeremy Dormitzer
8a56a1fc70 Add vterm find-file alias and clear scrollback binding 2021-03-08 14:15:20 -05:00
8 changed files with 41 additions and 3 deletions

View File

@ -0,0 +1,11 @@
;; -*- lexical-binding: t; -*-
(use-package dockerfile-mode
:mode (("Dockerfile\\'" . dockerfile-mode)))
(use-package docker
:commands (docker)
:config
(evil-collection-docker-setup))
(provide 'init-docker)

View File

@ -7,6 +7,9 @@
evil-respect-visual-line-mode t)
:config
(evil-mode 1)
(evil-define-key 'motion 'global
"j" #'evil-next-visual-line
"k" #'evil-previous-visual-line)
:custom
(evil-undo-system 'undo-tree))

View File

@ -0,0 +1,6 @@
;; -*- lexical-binding: t; -*-
(use-package groovy-mode
:defer t)
(provide 'init-groovy)

View File

@ -0,0 +1,9 @@
;; -*- lexical-binding: t; -*-
(use-package slime
:commands (slime)
:hook ((lisp-mode . slime-mode))
:init
(setq inferior-lisp-program (executable-find "sbcl")))
(provide 'init-lisp)

View File

@ -8,7 +8,9 @@
(call-interactively #'vterm)))
:config
(evil-collection-vterm-setup)
(general-def 'insert vterm-mode-map "C-<escape>" #'vterm-send-escape)
(general-def 'insert vterm-mode-map
"C-<escape>" #'vterm-send-escape
"C-l" #'vterm-clear-scrollback)
;; Add a hook when vterm changes the directory
(defvar vterm-directory-change-hook nil
"Hooks to be run after vterm changes the directory")
@ -26,6 +28,7 @@
(vterm-environment '("TYPEWRITTEN_CURSOR=terminal"))
(vterm-ignore-blink-cursor t)
(vterm-eval-cmds '(("find-file" find-file)
("ff" find-file)
("message" message)
("vterm-clear-scrollback" vterm-clear-scrollback)
("man" man)

View File

@ -78,9 +78,12 @@
(require 'init-help)
(require 'init-python)
(require 'init-clojure)
(require 'init-lisp)
(require 'init-js)
(require 'init-yaml)
(require 'init-groovy)
(require 'init-terraform)
(require 'init-docker)
(require 'init-run-command)
(require 'init-aws)
(require 'init-prodigy)

View File

@ -1,3 +1,6 @@
typeset -U path
path=(~/bin ~/.local/bin ~/.gem/ruby/2.6.0/bin ~/go/bin /opt/local/bin ~/.cargo/bin $path)
if [ -d ~/lola ];
then
export LOLA_HOME=~/lola/lola-server
@ -6,7 +9,6 @@ then
fi
export LEDGER_FILE="$HOME/journal.ledger"
export PATH="$HOME/bin/":"$HOME/.local/bin":"$HOME/.gem/ruby/2.6.0/bin":"$HOME/.gem/ruby/2.5.0/bin":"$HOME/go/bin":"/opt/local/bin":"$PATH"
EDITOR="$(which emacsclient)"
export EDITOR
@ -22,5 +24,5 @@ export GPG_TTY
if [ -d /Applications/Postgres.app ];
then
export PATH=/Applications/Postgres.app/Contents/Versions/latest/bin:"$PATH"
path=(/Applications/Postgres.app/Contents/Versions/latest/bin $path)
fi

View File

@ -142,6 +142,7 @@ if [[ "$INSIDE_EMACS" = 'vterm' ]]; then
alias clear='vterm_printf "51;Evterm-clear-scrollback";tput clear'
alias man='vterm_cmd man'
alias ediff='vterm_cmd ediff'
alias ff='vterm_cmd find-file'
fi
# This is to change the title of the buffer based on information provided by the