summaryrefslogtreecommitdiffstats
path: root/rc.org
blob: cef68816f833513fd828535d4d8ba15b2fa0b4e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
#+title: rc.org
#+property: header-args :comments link :mkdirp yes :results silent

* About

This org file contains the configuration files of pretty much every
program I use. The files are tangled (i.e. exported, or derived) from
this file using =org-babel=.

Note: This file is best viewed inside Emacs with org mode.

* Configs

** Git

*** gitconfig
:PROPERTIES:
:header-args+: :tangle ~/.gitconfig
:END:

**** user
#+begin_src conf
[user]
    name = Amin Bandali
    email = amin@aminb.org
    # signingkey = 4E05246AB0BF7FFB
#+end_src

**** signing
#+begin_src conf
# [commit]
#     gpgsign = true
# [format]
#     signoff = true
#+end_src

**** core
#+begin_src conf
[core]
    autocrlf = input  # CRLF -> LF on commit
    editor = emacsclient -t
    excludesfile = ~/.gitignore_global
    pager = "less"
#+end_src

**** gpg
#+begin_src conf
[gpg]
    program = gpg2
#+end_src

**** alias
#+begin_src conf
[alias]
    git = !exec git  # handle nested git calls, e.g. git git status
    aliases = config --get-regexp '^alias\\.'
    a = add
    s = status
    sl = status --long
    c = checkout
    cb = checkout -b
    b = branch
    r = rebase
    p = pull
    pr = pull --rebase
    ps = push
    psf = push --force
#+end_src

**** color
#+begin_src conf
[color]
    ui = auto
[color "status"]
    added = green bold
    changed = red bold
    untracked = red bold
[color "branch"]
    current = green bold
    remote = magenta bold
[color "diff"]
    new = green bold
    old = red bold
#+end_src

**** status
#+begin_src conf
[status]
    # showUntrackedFiles = all
    short=true
    branch=true
#+end_src

**** github
#+begin_src conf
[github]
	user = aminb
#+end_src

*** gitignore
:PROPERTIES:
:header-args+: :tangle ~/.gitignore_global
:END:

#+begin_src conf
*.orig
*.py[co]
*.sublime-workspace
*~
.DS_Store
*.elc
*-autoloads.el
#+end_src

** Latexmk
:PROPERTIES:
:header-args+: :tangle ~/.latexmkrc
:END:

#+begin_src conf
$pdf_previewer = "start zathura %O %S";
$clean_ext = "aux out";

# $pdf_update_method = 4;
# $pdf_update_command = "zathura %O %S";

# Synctex allows one to jump to from the PDF in Zathura to the source in Emacs
# by Ctrl+click in the PDF.
# Tell latexmk to use Zathura as a previewer, and run emacsclient as the Synctex
# editor.
# $pdf_previewer = 'exec zathura --synctex-forward -x \'emacsclient --no-wait +%{line} %{input}\' %O %S';
#+end_src