Ledger mode + documentation.

Commit
b21a3d195edbf57c99330b04d5635a989ed29609
Author
Blendoit <blendoit@gmail.com>
Author date
Committer
Blendoit <blendoit@gmail.com>
Committer date
Changed files
.gitignore
index ba13e4e8..ed09d8ba 100644..100644
@@ -18,3 +18,6 @@
18 18 ido.last
19 19 recentf
20 20 srecode-map.el
21 Added: .org-id-locations
22 Added: network-security.data
23 Added: places
blendoit/custom/custom-file.el
index 455c2e88..f61f2053 100644..100644
@@ -13,23 +13,57 @@
13 13 (quote
14 14 ("f56eb33cd9f1e49c5df0080a3e8a292e83890a61a89bceeaa481a5f183e8e3ef" default)))
15 15 '(fci-rule-color "#383838")
16 Added: '(ledger-reports
17 Added: (quote
18 Added: (("bal" "%(binary) -f %(ledger-file) bal")
19 Added: ("bal-USD" "%(binary) -f %(ledger-file) bal --exchange USD")
20 Added: ("reg" "%(binary) -f %(ledger-file) reg")
21 Added: ("net-worth" "%(binary) -f %(ledger-file) bal ^Assets ^Liabilities --exchange USD")
22 Added: ("net-income" "%(binary) -f %(ledger-file) bal ^Income ^Expenses --exchange USD --depth 2 --invert")
23 Added: ("payee" "%(binary) -f %(ledger-file) reg @%(payee)")
24 Added: ("account" "%(binary) -f %(ledger-file) reg %(account)")
25 Added: ("budget" "%(binary) -f %(ledger-file) budget --exchange USD"))))
16 26 '(line-number-mode nil)
27 Added: '(mode-line-format
28 Added: (quote
29 Added: ("%e" mode-line-front-space mode-line-mule-info mode-line-client mode-line-modified mode-line-remote mode-line-frame-identification mode-line-buffer-identification " "
30 Added: (vc-mode vc-mode)
31 Added: " " mode-line-modes mode-line-misc-info mode-line-end-spaces)))
17 32 '(nrepl-message-colors
18 33 (quote
19 34 ("#CC9393" "#DFAF8F" "#F0DFAF" "#7F9F7F" "#BFEBBF" "#93E0E3" "#94BFF3" "#DC8CC3")))
20 35 '(org-agenda-diary-file "~/org/PERSONAL/diary/diary.org")
21 Removed: '(org-agenda-files (quote ("~/org/PERSONAL/diary/diary.org")))
36 Added: '(org-agenda-files
37 Added: (quote
38 Added: ("~/org/PERSONAL/workout/workout.org" "~/org/WORK/Safran/programs/MA700/notes/MA700-notes.org_archive" "~/org/WORK/Safran/programs/MA700/notes/MA700-notes.org" "~/org/PERSONAL/diary/log.org" "~/org/WORK/Safran/programs/B787/VIP/timeline.org" "~/org/PERSONAL/diary/diary.org" "~/org/WORK/Safran/programs/WFH/WFH-notes.org_archive" "~/org/WORK/Safran/programs/WFH/WFH-notes.org" "~/org/WORK/Safran/programs/PHM/PHM-notes.org_archive" "~/org/WORK/Safran/programs/MRJ/test-fixture-status.org" "~/org/WORK/Safran/programs/MRJ/MRJ-notes.org" "~/org/WORK/Safran/programs/A220/A220-notes.org" "~/org/PERSONAL/projects/projects.org" "~/org/PERSONAL/schedule-personal.org" "~/org/WORK/Safran/schedule-Safran.org" "~/org/people.org")))
39 Added: '(org-agenda-include-diary t)
40 Added: '(org-agenda-insert-diary-strategy (quote date-tree-last))
41 Added: '(org-agenda-skip-scheduled-if-deadline-is-shown (quote not-today))
42 Added: '(org-babel-load-languages
43 Added: (quote
44 Added: ((shell . t)
45 Added: (python . t)
46 Added: (plantuml . t)
47 Added: (emacs-lisp . t)
48 Added: (awk . t)
49 Added: (ledger . t)
50 Added: (gnuplot . t))))
22 51 '(org-file-apps
23 52 (quote
24 53 ((auto-mode . emacs)
25 54 ("\\.mm\\'" . default)
26 55 ("\\.x?html?\\'" . default)
27 56 ("\\.pdf\\'" . "mupdf %s"))))
57 Added: '(org-startup-align-all-tables t)
28 58 '(org-time-stamp-custom-formats (quote ("%d %b, %Y (%a)" . "%d %b, %Y (%a), at %H:%M")))
29 59 '(package-selected-packages
30 60 (quote
31 Removed: (which-key srefactor-lisp srefactor all-the-icons flycheck ibuffer-sidebar pdf-tools magit rainbow-delimiters smartparens mixed-pitch org-bullets use-package tabbar powerline ivy-hydra flatui-theme evil counsel company benchmark-init)))
61 Added: (gnuplot ledger-mode company-mode wombat-theme wombar-theme which-key srefactor-lisp srefactor all-the-icons flycheck ibuffer-sidebar pdf-tools magit rainbow-delimiters smartparens mixed-pitch org-bullets use-package tabbar powerline ivy-hydra flatui-theme evil counsel company benchmark-init)))
32 62 '(pdf-view-midnight-colors (quote ("#DCDCCC" . "#383838")))
63 Added: '(save-place-mode t)
64 Added: '(send-mail-function (quote smtpmail-send-it))
65 Added: '(smtpmail-smtp-server "smtp.gmail.com")
66 Added: '(smtpmail-smtp-service 587)
33 67 '(vc-annotate-background "#2B2B2B")
34 68 '(vc-annotate-color-map
35 69 (quote
blendoit/init-blendoit.org
index a1640a1a..7dede3fd 100644..100644
@@ -1,14 +1,20 @@
1 Removed: #+TITLE: Blendoit's Emacs configuration
1 Added: #+TITLE: Blendoit's literate GNU Emacs config
2 2 #+AUTHOR: Marius Peter
3 Removed: #+DATE: <2020-07-19 Sun>
3 Added: #+DATE: <2020-07-21 Tue>
4 4 #+STARTUP: customtime showall
5 5 #+SETUPFILE: ~/org/templates/documents/personal.org
6 6 #+INCLUDE: ~/org/templates/documents/personal-title.org
7 7
8 8 #+BEGIN_abstract
9 Removed: Emacs enables an unparalleled level of customisation by allowing the
10 Removed: introspection of every variable and function that can be understood by
11 Removed: the software. The possibilities are endless.
9 Added: GNU Emacs is most often used as a text editor. The utmost level of
10 Added: customisation is afforded by enabling the user to rewrite /any/ part of the
11 Added: source code and observe the editor's modified behaviour in real time. Since its
12 Added: inception in 1984, GNU Emacs has grown to be much more than a full-featured,
13 Added: high-productivity text editor---new /modes/ have been written to interact with
14 Added: hundreds of file formats, including =.txt=, =.pdf=, =.jpg=, =.csv=, and =.zip= just to
15 Added: name a few. This configuration file itself was written in /Org mode/, a
16 Added: collection of functions enabling the harmonious mixing of code and comments in
17 Added: view of publicaton: this is the endgame of /literate programming/.
12 18 #+END_abstract
13 19
14 20 * Preliminary setup
@@ -34,7 +40,7 @@
34 40 (load custom-file)
35 41 #+END_SRC
36 42
37 Removed: ** Shortcut
43 Added: ** Customization shortcuts
38 44
39 45 We begin by defining a user shortcut to this very file:
40 46
@@ -47,6 +53,14 @@
47 53 (global-set-key (kbd "C-c c") 'find-init-blendoit)
48 54 #+END_SRC
49 55
56 Added: Now, different shortcuts for other customization actions:
57 Added:
58 Added: #+NAME: shortcuts-customization
59 Added: #+BEGIN_SRC emacs-lisp
60 Added: (global-set-key (kbd "C-c v") 'customize-variable)
61 Added: #+END_SRC
62 Added:
63 Added:
50 64 ** Backups
51 65
52 66 Backups are so important that they should be described right after the shortcut
@@ -67,21 +81,59 @@
67 81
68 82 #+INCLUDE: ./secrets.org
69 83
84 Added: #+BEGIN_SRC emacs-lisp
85 Added: (setq user-full-name "Marius Peter"
86 Added: user-mail-address "blendoit@gmail.com")
87 Added: #+END_SRC
88 Added:
70 89 * Bindings
71 90
91 Added: ** Navigation
92 Added:
72 93 #+BEGIN_SRC emacs-lisp
73 Removed: (global-set-key (kbd "C-c e") 'eval-buffer)
74 94 (global-set-key (kbd "C-s") 'save-buffer)
75 95 (global-set-key (kbd "C-b") 'ibuffer-sidebar-toggle-sidebar)
76 96 (global-set-key (kbd "C-w") 'kill-buffer-and-window)
97 Added: (global-set-key (kbd "C-q") 'save-buffers-kill-terminal)
98 Added: (global-set-key (kbd "C-o") 'menu-find-file-existing)
99 Added: (global-set-key (kbd "C-r") 'counsel-recentf)
100 Added: #+END_SRC
101 Added:
102 Added: ** =Org=
103 Added:
104 Added: Quick access to important Org mode functionalities.
105 Added:
106 Added: *** Agenda
107 Added:
108 Added: The agenda displays a chronological list of headings across all agenda files
109 Added: for which the heading or body contain a matching
110 Added: org-time-stamp=[fn::An=org-time-stamp= can be inserted with =C-c .= (period)].
111 Added:
112 Added: #+BEGIN_SRC emacs-lisp
77 113 (global-set-key (kbd "C-c a") 'org-agenda)
78 114 #+END_SRC
79 115
80 Removed: ** Zoom
116 Added: *** Export
81 117
82 Removed: Zoom in/out of selected buffer.
118 Added: This creates a shorter binding for the most common Org export: Org to LaTeX.
83 119
84 120 #+BEGIN_SRC emacs-lisp
121 Added: (defun blendoit-org-quick-export ()
122 Added: "Org export to PDF and open.
123 Added: This basically reimplements `C-c C-e l o'."
124 Added: (interactive)
125 Added: (org-latex-export-to-pdf)
126 Added: (org-open-file
127 Added: (concat (substring buffer-file-truename 0 -3) "pdf")))
128 Added:
129 Added: (global-set-key (kbd "C-c e") 'blendoit-org-quick-export)
130 Added: #+END_SRC
131 Added:
132 Added: ** Mouse zoom
133 Added:
134 Added: Zoom in/out of selected buffer using Alt + mouse wheel.
135 Added:
136 Added: #+BEGIN_SRC emacs-lisp
85 137 (global-set-key [M-mouse-4] 'text-scale-increase)
86 138 (global-set-key [M-mouse-5] 'text-scale-decrease)
87 139 #+END_SRC
@@ -219,12 +271,32 @@
219 271 t ("xelatex" "lualatex")))
220 272 #+END_SRC
221 273
274 Added: ** =gnuplot=
222 275
276 Added: #+BEGIN_SRC emacs-lisp
277 Added: (use-package gnuplot)
278 Added: #+END_SRC
279 Added:
280 Added: ** =company=
281 Added:
282 Added: # #+BEGIN_SRC emacs-lisp
283 Added: # (use-package company)
284 Added: # #+END_SRC
285 Added:
286 Added: ** Ledger
287 Added:
288 Added: #+BEGIN_SRC emacs-lisp
289 Added: (use-package ledger-mode
290 Added: :bind
291 Added: ("C-c r" . ledger-report)
292 Added: ("C-c C" . ledger-mode-clean-buffer)
293 Added: )
294 Added: #+END_SRC
295 Added:
223 296 ** ibuffer-sidebar
224 297
225 298 #+BEGIN_SRC emacs-lisp
226 Removed: (use-package ibuffer-sidebar
227 Removed: :commands (ibuffer-sidebar-toggle-sidebar))
299 Added: (use-package ibuffer-sidebar)
228 300 #+END_SRC
229 301
230 302 ** Which-key
@@ -232,11 +304,11 @@
232 304 #+BEGIN_SRC emacs-lisp
233 305 (use-package which-key
234 306 :init
235 Removed: (which-key-mode)
236 Removed: :config
237 Removed: ;; (setq which-key-idle-delay 1000)
238 Removed: ;; (setq which-key-idle-secondary-delay 0.05)
239 Removed: ;; (setq which-key-show-early-on-C-h t)
307 Added: (which-key-mode)
308 Added: ;; :config
309 Added: ;; (setq which-key-idle-delay 1000)
310 Added: ;; (setq which-key-idle-secondary-delay 0.05)
311 Added: ;; (setq which-key-show-early-on-C-h t)
240 312 )
241 313 #+END_SRC
242 314
@@ -245,36 +317,33 @@
245 317 Auto completion.
246 318
247 319 #+BEGIN_SRC emacs-lisp
248 Removed: (use-package ivy
249 Removed: :config
320 Added: (use-package ivy
321 Added: :config
250 322 (ivy-mode t)
251 323 (setq ivy-use-virtual-buffers t
252 Removed: ivy-count-format "%d/%d "
253 Removed: enable-recursive-minibuffers t))
324 Added: ivy-count-format "%d/%d "
325 Added: enable-recursive-minibuffers t))
254 326
255 327 (use-package ivy-hydra)
256 Removed: (setq ivy-initial-inputs-alist nil)
257 Removed: (use-package ivy-hydra)
258 328 #+END_SRC
259 329
260 330 *** Counsel
261 331
262 332 Wonderful counsellor!
263 333
264 Removed: #+BEGIN_SRC emacs-lisp
265 Removed: (use-package counsel
266 Removed: :bind ("M-x" . counsel-M-x)
267 Removed: :config (counsel-mode))
334 Added: #+BEGIN_SRC emacs-lisp
335 Added: (use-package counsel
336 Added: :bind ("M-x" . counsel-M-x)
337 Added: :config (counsel-mode))
268 338
269 339 (global-set-key (kbd "C-f") 'counsel-grep-or-swiper)
270 Removed: (global-set-key (kbd "C-F") 'counsel-find-file)
271 Removed: #+END_SRC
340 Added: #+END_SRC
272 341
273 342 *** Swiper
274 343
275 344 #+BEGIN_SRC emacs-lisp
276 Removed: (use-package swiper
277 Removed: :bind (("C-f" . counsel-grep-or-swiper)))
345 Added: (use-package swiper
346 Added: :bind (("C-f" . counsel-grep-or-swiper)))
278 347 #+END_SRC
279 348
280 349 ** Ido
@@ -290,31 +359,29 @@
290 359 #+NAME: company
291 360 #+BEGIN_SRC emacs-lisp
292 361 (use-package company
293 Removed: :config
294 Removed: (add-hook 'after-init-hook 'global-company-mode))
362 Added: :config (add-hook 'after-init-hook 'global-company-mode))
295 363 #+END_SRC
296 364
297 365 ** Flycheck
298 366
299 Removed: #+NAME: flycheck
300 Removed: #+BEGIN_SRC emacs-lisp
301 Removed: (use-package flycheck
302 Removed: :init (global-flycheck-mode))
303 Removed: #+END_SRC
367 Added: #+NAME: flycheck
368 Added: #+BEGIN_SRC emacs-lisp
369 Added: ; (use-package flycheck
370 Added: ; :init (global-flycheck-mode))
371 Added: #+END_SRC
304 372
305 373 ** Magit
306 374
307 375 #+BEGIN_SRC emacs-lisp
308 376 (use-package magit
309 Removed: :bind ("C-c g" . magit-status))
377 Added: :bind ("C-c g" . magit-status))
310 378 #+END_SRC
311 379
312 380 ** PDF-tools
313 381
314 382 #+BEGIN_SRC emacs-lisp
315 383 (use-package pdf-tools
316 Removed: :config
317 Removed: (pdf-loader-install))
384 Added: :config (pdf-loader-install))
318 385 #+END_SRC
319 386
320 387 * Cosmetics
@@ -336,10 +403,10 @@
336 403 modes.
337 404
338 405 #+BEGIN_SRC emacs-lisp
339 Removed: (use-package mixed-pitch
340 Removed: :hook
341 Removed: ;; If you want it in all text modes:
342 Removed: (text-mode . mixed-pitch-mode))
406 Added: (use-package mixed-pitch
407 Added: :hook
408 Added: ;; If you want it in all text modes:
409 Added: (org-mode . mixed-pitch-mode))
343 410 #+END_SRC
344 411
345 412 ** All the icons
@@ -355,6 +422,7 @@
355 422 ;; :config
356 423 ;; (load-theme 'zenburn)
357 424 ;; )
425 Added: (load-theme 'wombat)
358 426 #+END_SRC
359 427
360 428 ** Transparency
@@ -371,10 +439,21 @@
371 439
372 440 * Editing preferences
373 441
442 Added: These customizations enhance editor usability.
443 Added:
374 444 #+BEGIN_SRC emacs-lisp
375 445 (setq-default fill-column 79)
376 446 (defalias 'yes-or-no-p 'y-or-n-p)
377 447 #+END_SRC
448 Added:
449 Added: ** Initial & subsequent frame size
450 Added:
451 Added: # #+BEGIN_SRC emacs-lisp
452 Added: # (add-to-list 'initial-frame-alist '((width . 79) (height . 60)))
453 Added: # (add-to-list 'default-frame-alist '((width . 60) (height . 20)))
454 Added: # #+END_SRC
455 Added:
456 Added: ** Better parentheses
378 457
379 458 #+BEGIN_SRC emacs-lisp
380 459 (use-package smartparens
blendoit/init-blendoit.pdf
index dbaed0e0..c8927d48 100644..100644

Binary files differ