Notes

cleanup arch package caches

October 20, 2022
linux
arch

reference Pacman stores all downloaded packages in /var/cache/pacman/pkg/. It does not remove the old and uninstalled packages automatically. This is intended behavior for handling situations like downgrading a package without retrieve the previous version through the Arch Linux Archive. Check size of cached packages # du -sh /var/cache/pacman/pkg/ Cleaning the cache manually # # delete cached packages that are not installed sudo pacman -Sc # delete caches including those that are currently installed. ...

org-mode cheat-sheet

October 9, 2022
emacs
org-mode, org

line breaks # Enter twice. It renders <p>line</p><p>line</p> line1 line2 Insert ‘\\’ end of line. It renders <p>line<br>line<p/> line1 line2 Inline code block # Wrap code with ~ ~code~ It shown as code Wrap code with = =code= It shown as code Code block # <C-c> <C-,> s [ #+begin_src <language> ] code [ #+end_src ] Example # To ignore special syntax. <C-c> <C-,> e Notes: Insert comma before [ * | ,* | #+ | ,#+ ]. ...

org-roam-template config

October 9, 2022
emacs
org-roam, hugo

references https://seds.nl/notes/export_org_roam_backlinks_with_gohugo/ https://www.linuxzen.com/notes/notes/20211231142642-org_roam_export_backlinks_on_hugo/ Doom-emacs # press SPC f p to open config.el file. Set default settings. # ; file-truename function is only necessary when you use symbolic links inside org-roam-directory. (setq org-roam-directory (file-truename "~/org/roam")) ; provide link completion matching outside of Org links. (setq org-roam-completion-everywhere t) ; always resolve symlinks, at a performance cost (setq find-file-visit-truename t) ; ensure that Org-roam is available on startup (org-roam-db-autosync-mode) ; To build the cache manually, run M-x org-roam-db-sync. ...