summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dotcustomel15
-rw-r--r--dotemacs116
-rw-r--r--dotgitconfig5
-rw-r--r--dotsshconfig50
-rw-r--r--dottmuxconf5
-rw-r--r--dotzshrc48
-rw-r--r--repos-groklocpl-dotgit-config34
7 files changed, 273 insertions, 0 deletions
diff --git a/dotcustomel b/dotcustomel
new file mode 100644
index 0000000..d397c0f
--- /dev/null
+++ b/dotcustomel
@@ -0,0 +1,15 @@
+(custom-set-variables
+ ;; custom-set-variables was added by Custom.
+ ;; If you edit it by hand, you could mess it up, so be careful.
+ ;; Your init file should contain only one such instance.
+ ;; If there is more than one, they won't work right.
+ '(package-selected-packages
+ (quote
+ (yaml-mode markdown-mode magit go-mode dockerfile-mode)))
+ '(typescript-indent-level 2))
+(custom-set-faces
+ ;; custom-set-faces was added by Custom.
+ ;; If you edit it by hand, you could mess it up, so be careful.
+ ;; Your init file should contain only one such instance.
+ ;; If there is more than one, they won't work right.
+ )
diff --git a/dotemacs b/dotemacs
new file mode 100644
index 0000000..1cfa372
--- /dev/null
+++ b/dotemacs
@@ -0,0 +1,116 @@
+
+;; Added by Package.el. This must come before configurations of
+;; installed packages. Don't delete this line. If you don't want it,
+;; just comment it out by adding a semicolon to the start of the line.
+;; You may delete these explanatory comments.
+(package-initialize)
+
+(setq-default indent-tabs-mode nil)
+(setq-default make-backup-files nil)
+(setq-default column-number-mode t)
+(setq-default tramp-default-user "brad")
+(setq-default tramp-default-host "localhost")
+(setq-default pgg-default-user-id "Brad Clawsie <brad@b7j0c.org>")
+(setq-default pgg-query-keyserver nil)
+(setq confirm-nonexistent-file-or-buffer nil)
+(setq inhibit-splash-screen t)
+(setq display-time-24hr-format t)
+(setq debug-on-error t)
+(setq next-line-add-newlines nil)
+(setq scroll-step 1)
+(set-input-mode nil nil t)
+
+(global-set-key "\C-l" 'goto-line)
+(global-set-key "\C-h" 'delete-backward-char)
+(global-set-key (kbd "\C-x n") 'next-line)
+(global-set-key (kbd "\C-x m") 'previous-line)
+(global-set-key (kbd "\C-x w") 'kill-region)
+(global-set-key (kbd "\C-x a") 'beginning-of-line)
+(global-set-key (kbd "<f3>") 'magit-status)
+(global-set-key (kbd "<f4>") 'eshell)
+(global-set-key (kbd "<f5>") 'rename-buffer)
+(global-set-key (kbd "<f7>") 'scroll-down)
+(global-set-key (kbd "<f8>") 'scroll-up)
+(global-set-key (kbd "<f9>") 'set-mark-command)
+(global-set-key (kbd "<f10>") 'kill-ring-save)
+
+(global-set-key [mouse-2] 'yank)
+(global-font-lock-mode 1)
+(fset 'yes-or-no-p 'y-or-n-p)
+
+(display-time)
+(if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1))
+(if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
+(if (fboundp 'menu-bar-mode) (menu-bar-mode -1))
+(if (fboundp 'blink-cursor-mode) (blink-cursor-mode 0))
+(setq-default transient-mark-mode t)
+
+;; -------------------------------------------------------------
+;; eshell
+(setq eshell-prompt-function
+ (lambda nil (concat "" " $ ")))
+
+;; -------------------------------------------------------------
+;; various external modes
+(require 'ibuffer)
+(global-set-key (kbd "C-x C-b") 'ibuffer-other-window)
+(setq ibuffer-default-sorting-mode 'major-mode)
+
+;; ido
+(require 'ido)
+(ido-mode t)
+
+;; melpa
+(require 'package)
+(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
+
+;; go save hook
+(setq gofmt-command "goimports")
+(add-hook 'go-mode-hook (lambda ()
+ (add-hook 'before-save-hook 'gofmt-before-save nil 'local)))
+
+;; .t files perl-mode
+(add-to-list 'auto-mode-alist '("\\.t\\'" . perl-mode))
+
+;; -------------------------------------------------------------
+(defun insert-time ()
+ (interactive)
+ (insert (format-time-string "%Y-%m-%d-%R")))
+
+(defun insert-unixtime ()
+ (interactive)
+ (insert (format-time-string "%s")))
+
+(defun insert-date ()
+ (interactive)
+ (insert (format-time-string "%Y-%m-%d")))
+
+;; -------------------------------------------------------------
+;; revert all buffers with no confirm, and alias to f6
+(defun revert-all-buffers ()
+ "Refreshes all open buffers from their respective files."
+ (interactive)
+ (dolist (buf (buffer-list))
+ (with-current-buffer buf
+ (when (and (buffer-file-name) (file-exists-p (buffer-file-name)) (not (buffer-modified-p)))
+ (revert-buffer t t t) )))
+ (message "Refreshed open files."))
+(global-set-key (kbd "<f6>") 'revert-all-buffers)
+
+;; -------------------------------------------------------------
+;; macros
+(fset 'switchbuffers
+ [?\C-x ?b])
+(global-set-key (kbd "C-c b") 'switchbuffers)
+
+;; run auto-fill whenever editing markdown
+(add-hook 'markdown-mode-hook 'auto-fill-mode)
+
+;; no custom!
+(setq custom-file "~/.custom.el")
+(load custom-file :noerror)
+
+;; -------------------------------------------------------------
+;; server
+(server-start)
+
diff --git a/dotgitconfig b/dotgitconfig
new file mode 100644
index 0000000..4694e18
--- /dev/null
+++ b/dotgitconfig
@@ -0,0 +1,5 @@
+[user]
+ name = Brad Clawsie
+ email = brad@b7j0c.org
+[pull]
+ ff = only
diff --git a/dotsshconfig b/dotsshconfig
new file mode 100644
index 0000000..fbb5f18
--- /dev/null
+++ b/dotsshconfig
@@ -0,0 +1,50 @@
+ConnectionAttempts 1
+FallBackToRsh no
+ForwardAgent yes
+ForwardX11 no
+StrictHostKeyChecking no
+KeepAlive yes
+
+Host b7j0c
+ HostName b7j0c.org
+ User brad
+ Port 512
+
+Host grokloc
+ Hostname grokloc.com
+ User brad
+ Port 512
+
+Host debian0
+ HostName 127.0.1.1
+ User brad
+ Port 2222
+
+# git remote add grokloc-grokloc-pl ssh://grokloc-grokloc:/home/brad/bare-repos/grokloc-pl
+Host grokloc-grokloc
+ HostName grokloc.com
+ User brad
+ Port 512
+ IdentityFile ~/.ssh/id_grokloc
+ IdentitiesOnly yes
+
+# git remote add sr.ht-grokloc-pl git@sr.ht-grokloc:~bradclawsie/grokloc-pl
+Host sr.ht-grokloc
+ HostName git.sr.ht
+ User git
+ IdentityFile ~/.ssh/id_grokloc
+ IdentitiesOnly yes
+
+# git remote add github-grokloc-pl git@github-grokloc:grokloc/grokloc-pl.git
+Host github-grokloc
+ HostName github.com
+ User git
+ IdentityFile ~/.ssh/id_grokloc
+ IdentitiesOnly yes
+
+# git remote add gitlab-grokloc-pl git@gitlab-grokloc:grokloc/grokloc-pl.git
+Host gitlab-grokloc
+ HostName gitlab.com
+ User git
+ IdentityFile ~/.ssh/id_grokloc
+ IdentitiesOnly yes
diff --git a/dottmuxconf b/dottmuxconf
new file mode 100644
index 0000000..adec489
--- /dev/null
+++ b/dottmuxconf
@@ -0,0 +1,5 @@
+set -g status-bg black
+set -g status-fg white
+set -g status-interval 10
+set -g status-left ""
+set -g status-right "%H:%M"
diff --git a/dotzshrc b/dotzshrc
new file mode 100644
index 0000000..07c2b35
--- /dev/null
+++ b/dotzshrc
@@ -0,0 +1,48 @@
+export HISTFILE=$HOME/.histfile
+export HISTSIZE=1000
+export SAVEHIST=1000
+bindkey -e
+zstyle :compinstall filename "$HOME/.zshrc"
+autoload -Uz compinit
+compinit
+
+PS1="$ "
+
+# go
+export GOPATH="$HOME/gopath"
+export LOCAL_GO="$HOME/go"
+
+# perl
+export PERL_UNICODE="AS"
+export PERL_READLINE_NOWARN="yes"
+
+# paths
+export HOMEBINPATHS="$HOME/local/bin:$HOME/bin:$GOPATH/bin:$PERL5/bin:$LOCAL_GO/bin"
+export PATH="$HOMEBINPATHS:$PATH"
+
+# text
+export ALTERNATE_EDITOR="emacs" EDITOR="emacsclient" VISUAL="emacsclient"
+export LC_ALL=en_US.UTF-8
+export LANG=en_US.UTF-8
+
+# zsh
+alias c=clear
+alias h=history
+
+setopt autopushd pushdminus pushdsilent pushdtohome
+setopt autocd
+setopt cdablevars
+setopt interactivecomments
+setopt noclobber
+setopt HIST_REDUCE_BLANKS
+setopt HIST_IGNORE_SPACE
+setopt SH_WORD_SPLIT
+
+zstyle ':completion:*' completer _complete _match _approximate
+zstyle ':completion:*:match:*' original only
+zstyle ':completion:*:approximate:*' max-errors 1 numeric
+zstyle ':completion:*:*:kill:*' menu yes select
+zstyle ':completion:*:kill:*' force-list always
+zstyle ':completion:*:cd:*' ignore-parents parent pwd
+
+clear;
diff --git a/repos-groklocpl-dotgit-config b/repos-groklocpl-dotgit-config
new file mode 100644
index 0000000..5c7f7fb
--- /dev/null
+++ b/repos-groklocpl-dotgit-config
@@ -0,0 +1,34 @@
+[core]
+ repositoryformatversion = 0
+ filemode = true
+ bare = false
+ logallrefupdates = true
+[remote "gitlab"]
+ url = git@gitlab.com:grokloc/grokloc-pl.git
+ fetch = +refs/heads/*:refs/remotes/origin/*
+[remote "github"]
+ url = git@github.com:grokloc/grokloc-pl.git
+ fetch = +refs/heads/*:refs/remotes/origin/*
+[remote "sr.ht"]
+ url = git@git.sr.ht:~bradclawsie/grokloc-pl
+ fetch = +refs/heads/*:refs/remotes/origin/*
+[remote "grokloc"]
+ url = ssh://grokloc:/home/brad/bare-repos/grokloc-pl
+ fetch = +refs/heads/*:refs/remotes/origin/*
+[branch "master"]
+ remote = origin
+ merge = refs/heads/master
+[remote "github-grokloc-pl"]
+ url = git@github-grokloc:grokloc/grokloc-pl.git
+ fetch = +refs/heads/*:refs/remotes/github-grokloc-pl/*
+[remote "gitlab-grokloc-pl"]
+ url = git@gitlab-grokloc:grokloc/grokloc-pl.git
+ fetch = +refs/heads/*:refs/remotes/gitlab-grokloc-pl/*
+[remote "sr.ht-grokloc-pl"]
+ url = git@sr.ht-grokloc:~bradclawsie/grokloc-pl
+ fetch = +refs/heads/*:refs/remotes/sr.ht-grokloc-pl/*
+[remote "grokloc-grokloc-pl"]
+ url = ssh://grokloc-grokloc:/home/brad/bare-repos/grokloc-pl
+ fetch = +refs/heads/*:refs/remotes/grokloc-grokloc-pl/*
+[pull]
+ ff = only