diff options
-rw-r--r-- | .Xresources | 4 | ||||
-rw-r--r-- | .ansible.cfg | 2 | ||||
-rw-r--r-- | .ansible/README | 16 | ||||
-rw-r--r-- | .ansible/personalised.yml | 19 | ||||
-rw-r--r-- | .config/pancake/config.yaml | 6 | ||||
-rw-r--r-- | .emacs.d/blueish-theme.el | 18 |
6 files changed, 62 insertions, 3 deletions
diff --git a/.Xresources b/.Xresources index 994379f..dfaedbc 100644 --- a/.Xresources +++ b/.Xresources @@ -5,7 +5,9 @@ Xft.hintstyle: hintmedium Xft.hinting: true ! xterm -xterm*faceName: DejaVu Sans Mono +XTerm.termName: xterm-256color +! xterm*faceName: DejaVu Sans Mono +xterm*faceName: Noto Sans Mono xterm*faceSize: 11 xterm*rightScrollBar: true xterm*eightBitInput: false diff --git a/.ansible.cfg b/.ansible.cfg new file mode 100644 index 0000000..1c8ba09 --- /dev/null +++ b/.ansible.cfg @@ -0,0 +1,2 @@ +[defaults] +inventory = ~/.ansible/hosts diff --git a/.ansible/README b/.ansible/README new file mode 100644 index 0000000..a753811 --- /dev/null +++ b/.ansible/README @@ -0,0 +1,16 @@ +personalised.yaml is a basic ansible playbook to personalise the +servers I work with, used with ansible 2.5.3. + +ssh-agent should be running, host_vars should be set with +ansible-vault, e.g.: + + ansible-vault create host_vars/example.com.yaml + +With contents such as: + + ansible_become_password: examplepassword + +Invoked with: + + ansible-playbook --ask-vault-pass ~/.ansible/personalised.yml + diff --git a/.ansible/personalised.yml b/.ansible/personalised.yml new file mode 100644 index 0000000..3db2bc7 --- /dev/null +++ b/.ansible/personalised.yml @@ -0,0 +1,19 @@ +- hosts: personalised + tasks: + - name: Ensure emacs is installed on CentOS + become: yes + yum: + name: emacs-nox + state: latest + when: ansible_os_family == "RedHat" + - name: Ensure emacs is installed on Debian + become: yes + apt: + name: emacs25-nox + state: latest + when: ansible_os_family == "Debian" + - name: Set emacs as EDITOR for myself + lineinfile: + path: ~/.profile + regexp: '^export EDITOR=' + line: 'export EDITOR=emacs' diff --git a/.config/pancake/config.yaml b/.config/pancake/config.yaml index 0e8278d..e469039 100644 --- a/.config/pancake/config.yaml +++ b/.config/pancake/config.yaml @@ -24,7 +24,7 @@ externalViewers: png: xdg-open "${FILE}" indentDivs: false commands: - gopher: ! 'curl "${URI}" -w " + gopher: ! 'torify curl "${URI}" -w " -pancake- @@ -51,6 +51,7 @@ shortcuts: gp: gopher://gopherpedia.com:70/7/lookup? vs: gopher://gopher.floodgap.com/7/v2/vs? xiph: http://dir.xiph.org/search?search= + cs: http://citeseerx.ist.psu.edu/search?q= hoogle: https://www.haskell.org/hoogle/?hoogle= unclutter: hacker-news: ^https://news\.ycombinator\.com/((news|show|ask).*)?$ @@ -60,7 +61,7 @@ unclutter: hoogle: ^https://www\.haskell\.org/hoogle/\?hoogle= hackage-haddock: ^https?://hackage\.haskell\.org/package/[^/]+/docs/[^/]+$ mediawiki: ^https://en\.(m.)?(wiktionary|wikipedia)\.org/wiki/ -defaultCommand: ! 'curl --compressed -4 -L -w " +defaultCommand: ! 'curl -A "pancake/${PANCAKE}" --compressed -4 -L -w " -pancake- @@ -71,3 +72,4 @@ defaultCommand: ! 'curl --compressed -4 -L -w " " "${URI}"' historyDepth: 100 paginate: true +pandocTimeout: 60 diff --git a/.emacs.d/blueish-theme.el b/.emacs.d/blueish-theme.el index 6a5054b..5725610 100644 --- a/.emacs.d/blueish-theme.el +++ b/.emacs.d/blueish-theme.el @@ -76,6 +76,24 @@ '(idris-semantic-data-face ((t (:foreground "#f99")))) '(idris-semantic-function-face ((t (:foreground "#de8")))) '(idris-semantic-bound-face ((t (:foreground "#a9d")))) + + ;; ansi-colors + '(ansi-color-blue ((t (:background "#8bf" :foreground "#8bf")))) + '(ansi-color-bright-black ((t (:background "gray80" :foreground "gray80")))) + '(ansi-color-bright-blue ((t (:background "#2bf" :foreground "#2bf")))) + '(ansi-color-bright-cyan ((t (:background "#4ff" :foreground "#4ff")))) + '(ansi-color-bright-green ((t (:background "#4f4" :foreground "#4f4")))) + '(ansi-color-bright-magenta ((t (:background "#f8f" :foreground "#f8f")))) + '(ansi-color-bright-red ((t (:background "#faa" :foreground "#faa")))) + '(ansi-color-bright-yellow ((t (:background "khaki1" :foreground "khaki1")))) + '(ansi-color-cyan ((t (:background "#8ff" :foreground "#8ff")))) + '(ansi-color-green ((t (:background "#8f8" :foreground "#8f8")))) + '(ansi-color-magenta ((t (:background "#fbf" :foreground "#fbf")))) + '(ansi-color-red ((t (:background "#fbb" :foreground "#fbb")))) + '(ansi-color-yellow ((t (:background "LightYellow1" :foreground "LightYellow1")))) + + ;; mastodon.el + '(mastodon-display-name-face ((t (:foreground "lemon chiffon")))) ) |