2 Commits

Author SHA1 Message Date
  Brett Langdon a0dadf6253
some emacs improvements 10 months ago
  Brett Langdon 032de29790
update git config 10 months ago
5 changed files with 79 additions and 46 deletions
Unified View
  1. +3
    -1
      emacs.d/init.el
  2. +3
    -0
      emacs.d/layers/python/init.el
  3. +2
    -0
      emacs.d/layers/yaml/init.el
  4. +69
    -45
      gitconfig
  5. +2
    -0
      gitignore_global

+ 3
- 1
emacs.d/init.el View File

@ -133,7 +133,9 @@
;; -- Theme/Style setup -- ;; -- Theme/Style setup --
(progn (progn
;; Enable global line numbers ;; Enable global line numbers
(global-display-line-numbers-mode t)
(global-display-line-numbers-mode 1)
(setq line-number-mode t)
(setq column-number-mode t)
;; Hide menu bar ;; Hide menu bar
(menu-bar-mode -1) (menu-bar-mode -1)


+ 3
- 0
emacs.d/layers/python/init.el View File

@ -1,3 +1,6 @@
;; Do not notify the user each time Python tries to guess the indentation offset
(setq python-indent-guess-indent-offset-verbose nil)
;; lsp-mode ;; lsp-mode
(use-package lsp-pyright (use-package lsp-pyright
:defer t :defer t


+ 2
- 0
emacs.d/layers/yaml/init.el View File

@ -0,0 +1,2 @@
(add-hook 'yaml-ts-mode-hook
(lambda () (add-hook 'before-save-hook 'whitespace-cleanup nil 'local)))

+ 69
- 45
gitconfig View File

@ -1,60 +1,84 @@
[user] [user]
name = brettlangdon name = brettlangdon
email = me@brett.is
email = brett.langdon@datadoghq.com
signingkey = ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPG5FWUNREaSQ7t/vyc+jNaiq4nmaNC07535tnpN3hCj signingkey = ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPG5FWUNREaSQ7t/vyc+jNaiq4nmaNC07535tnpN3hCj
[credential]
helper = store
[alias]
dc = diff --cached
dm = diff origin/main
[branch]
sort = -committerdate
[column]
ui = auto
[commit]
gpgsign = true
verbose = true
[core] [core]
excludesfile = /Users/brettlangdon/.gitignore_global
excludesfile = ~/.gitignore_global
editor = emacs -nw -Q editor = emacs -nw -Q
pager = delta --dark --keep-plus-minus-markers pager = delta --dark --keep-plus-minus-markers
whitespace = trailing-space,space-before-tab whitespace = trailing-space,space-before-tab
[interactive]
diffFilter = delta --color-only
[alias]
st = status
d = diff --color --minimal
dc = diff --color --minimal --cached
g = grep -p
dm = diff origin/main
[credential]
helper = store
[diff] [diff]
compactionHeuristic = true
algorithm = histogram algorithm = histogram
[push]
default = simple
[grep]
lineNumber = true
[commit]
gpgsign = true
[color]
ui = true
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[color "diff"]
meta = 227
frag = magenta bold
commit = 227 bold
old = red bold
new = green bold
whitespace = red reverse
colorMoved = plain
mnemonicPrefix = true
renames = true
[fetch]
prune = true
pruneTags = true
all = true
[github]
user = brettlangdon
[gpg] [gpg]
format = ssh format = ssh
[gpg "ssh"] [gpg "ssh"]
program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign" program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign"
allowedSignersFile = "/Users/brettlangdon/.config/git/allowed_signers"
[tag]
forceSignAnnotated = true
[pull]
rebase = true
allowedSignersFile = "/Users/brettlangdon/.config/git/allowed_signers"
[grep]
lineNumber = true
[help]
autocorrect = prompt
[interactive]
diffFilter = delta --color-only
[init] [init]
defaultBranch = main defaultBranch = main
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[github]
user = brettlangdon
[merge]
conflictstyle = zdiff3
[pull]
rebase = true
[push]
default = simple
autoSetupRemote = true
followTags = true
[rebase]
autoSquash = true
autoStash = true
updateRefs = true
[rerere]
enabled = true
autoupdate = true
[tag]
sort = version:refname
forceSignAnnotated = true

+ 2
- 0
gitignore_global View File

@ -8,3 +8,5 @@
*.coverage *.coverage
htmlcov htmlcov
*.ccls-cache *.ccls-cache
.gitlab-ci-local
.clangd

Loading…
Cancel
Save