cef68816f833513fd828535d4d8ba15b2fa0b4e0
[~bandali/configs] / rc.org
1 #+title: rc.org
2 #+property: header-args :comments link :mkdirp yes :results silent
3
4 * About
5
6 This org file contains the configuration files of pretty much every
7 program I use. The files are tangled (i.e. exported, or derived) from
8 this file using =org-babel=.
9
10 Note: This file is best viewed inside Emacs with org mode.
11
12 * Configs
13
14 ** Git
15
16 *** gitconfig
17 :PROPERTIES:
18 :header-args+: :tangle ~/.gitconfig
19 :END:
20
21 **** user
22 #+begin_src conf
23 [user]
24 name = Amin Bandali
25 email = amin@aminb.org
26 # signingkey = 4E05246AB0BF7FFB
27 #+end_src
28
29 **** signing
30 #+begin_src conf
31 # [commit]
32 # gpgsign = true
33 # [format]
34 # signoff = true
35 #+end_src
36
37 **** core
38 #+begin_src conf
39 [core]
40 autocrlf = input # CRLF -> LF on commit
41 editor = emacsclient -t
42 excludesfile = ~/.gitignore_global
43 pager = "less"
44 #+end_src
45
46 **** gpg
47 #+begin_src conf
48 [gpg]
49 program = gpg2
50 #+end_src
51
52 **** alias
53 #+begin_src conf
54 [alias]
55 git = !exec git # handle nested git calls, e.g. git git status
56 aliases = config --get-regexp '^alias\\.'
57 a = add
58 s = status
59 sl = status --long
60 c = checkout
61 cb = checkout -b
62 b = branch
63 r = rebase
64 p = pull
65 pr = pull --rebase
66 ps = push
67 psf = push --force
68 #+end_src
69
70 **** color
71 #+begin_src conf
72 [color]
73 ui = auto
74 [color "status"]
75 added = green bold
76 changed = red bold
77 untracked = red bold
78 [color "branch"]
79 current = green bold
80 remote = magenta bold
81 [color "diff"]
82 new = green bold
83 old = red bold
84 #+end_src
85
86 **** status
87 #+begin_src conf
88 [status]
89 # showUntrackedFiles = all
90 short=true
91 branch=true
92 #+end_src
93
94 **** github
95 #+begin_src conf
96 [github]
97 user = aminb
98 #+end_src
99
100 *** gitignore
101 :PROPERTIES:
102 :header-args+: :tangle ~/.gitignore_global
103 :END:
104
105 #+begin_src conf
106 *.orig
107 *.py[co]
108 *.sublime-workspace
109 *~
110 .DS_Store
111 *.elc
112 *-autoloads.el
113 #+end_src
114
115 ** Latexmk
116 :PROPERTIES:
117 :header-args+: :tangle ~/.latexmkrc
118 :END:
119
120 #+begin_src conf
121 $pdf_previewer = "start zathura %O %S";
122 $clean_ext = "aux out";
123
124 # $pdf_update_method = 4;
125 # $pdf_update_command = "zathura %O %S";
126
127 # Synctex allows one to jump to from the PDF in Zathura to the source in Emacs
128 # by Ctrl+click in the PDF.
129 # Tell latexmk to use Zathura as a previewer, and run emacsclient as the Synctex
130 # editor.
131 # $pdf_previewer = 'exec zathura --synctex-forward -x \'emacsclient --no-wait +%{line} %{input}\' %O %S';
132 #+end_src