Lua-mode; starship; org modules; simpler vterm; brew packages

This commit is contained in:
Jeremy Dormitzer 2023-11-06 13:32:16 -05:00
parent f36d7971b6
commit 8e150aab98
7 changed files with 43 additions and 8 deletions

View File

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

View File

@ -29,6 +29,18 @@
(newline))
(goto-char (point-max))))
:custom
(org-modules '(ol-doi
ol-w3m
ol-bbdb
ol-bibtex
ol-docview
ol-gnus
ol-info
ol-irc
ol-mhe
ol-rmail
ol-eww
org-tempo))
(org-agenda-files `(,(expand-file-name "~/org/todo.org")
,(expand-file-name "~/org/daily")))
(org-todo-keywords '((sequence

View File

@ -2,12 +2,6 @@
(use-package vterm
:commands vterm
:init
(defun project-vterm ()
(interactive)
(if (projectile-project-root)
(call-interactively #'projectile-run-vterm)
(call-interactively #'vterm)))
:config
(general-def 'insert vterm-mode-map "C-<escape>" #'vterm-send-escape)
;; Add a hook when vterm changes the directory
@ -47,7 +41,7 @@
(vterm-send-C-x)
(vterm-send-C-e))
:general
(leader-map "v" #'project-vterm)
(leader-map "v" #'vterm)
(vterm-mode-map "C-x C-e" #'vterm-edit-zsh-command-line)
:custom
(vterm-max-scrollback 10000)

View File

@ -101,6 +101,7 @@
(require 'init-groovy)
(require 'init-terraform)
(require 'init-docker)
(require 'init-lua)
(require 'init-run-command)
(require 'init-aws)
(require 'init-prodigy)

View File

@ -4,6 +4,7 @@ tap "homebrew/cask"
tap "homebrew/cask-versions"
tap "homebrew/core"
tap "railwaycat/emacsmacport"
tap "ryleelyman/seamstress"
brew "clojure/tools/clojure"
brew "cmake"
brew "direnv"
@ -18,6 +19,8 @@ brew "jdtls"
brew "jq"
brew "kubectx"
brew "llvm"
brew "lua"
brew "lua-language-server"
brew "man-db"
brew "maven"
brew "metals"
@ -39,11 +42,14 @@ brew "ripgrep"
brew "ruby"
brew "sbt"
brew "scala"
brew "seamstress"
brew "starship"
brew "stow"
brew "sqlite"
brew "texinfo"
brew "typescript-language-server"
brew "vscode-langservers-extracted"
brew "youtube-dl"
cask "alfred"
cask "bartender"
cask "calibre"

View File

@ -0,0 +1,15 @@
format = """$directory$fill\
$git_branch\
$git_commit\
$git_state\
$git_metrics\
$git_status
$character"""
[directory]
truncate_to_repo = false
style = 'bold green'
repo_root_style = 'bold cyan'
[git_branch]
symbol = '🌱 '

View File

@ -12,7 +12,10 @@ fi
export ZSH="$HOME/.oh-my-zsh"
fpath=($fpath "$HOME/.zfunctions")
if [ -e "$HOME/.zfunctions/prompt_typewritten_setup" ]; then
if command -v starship; then
export ZSH_THEME=""
eval "$(starship init zsh)"
elif [ -e "$HOME/.zfunctions/prompt_typewritten_setup" ]; then
export ZSH_THEME=""
# Set typewritten ZSH as a prompt
autoload -U promptinit; promptinit