From 349e8b0f2e0b829604e02e0fee121e260ebbd86a Mon Sep 17 00:00:00 2001 From: Ryan Kes Date: Tue, 31 Mar 2020 12:03:33 +0200 Subject: [PATCH] Cleaned up org config & installed org-roam --- README.org | 1 + emacs/.config/doom/configuration.org | 38 +++++++++++++++------------- emacs/.config/doom/init.el | 4 +-- install | 2 +- 4 files changed, 24 insertions(+), 21 deletions(-) diff --git a/README.org b/README.org index fb8a264..fd4154d 100644 --- a/README.org +++ b/README.org @@ -52,6 +52,7 @@ A repository of my personal configuration files. - [[https://github.com/junegunn/fzf][fzf]] - [[https://gnupg.org/][gnupg]] - [[https://golang.org/][golang]] +- [[https://graphviz.org/][graphviz]] - [[https://imagemagick.org/index.php][ImageMagick]] - [[http://isync.sourceforge.net/mbsync.html][isync]] - [[https://github.com/canonical/lightdm][LightDM]] diff --git a/emacs/.config/doom/configuration.org b/emacs/.config/doom/configuration.org index 624ac33..a3d4a3b 100644 --- a/emacs/.config/doom/configuration.org +++ b/emacs/.config/doom/configuration.org @@ -1,23 +1,31 @@ * Table of Contents :TOC_3:noexport: - [[#general-settings][General settings]] + - [[#variable-font-sizes-depending-on-screen-width-set-font-to-jetbrains-mono][Variable font sizes depending on screen width. Set font to JetBrains Mono]] + - [[#theme-is-set-to-doom-molokai-from-doom-themes][Theme is set to doom-molokai from doom-themes]] + - [[#fetch-password-from-authinfo][Fetch password from authinfo]] - [[#projectile][Projectile]] + - [[#set-default-paths-projectile-should-search][Set default paths projectile should search]] - [[#circe][Circe]] + - [[#connect-to-znc-passwords-are-gotten-from-password-store][Connect to ZNC. Passwords are gotten from Password Store.]] - [[#org-mode][Org mode]] - [[#general-settings-1][General settings]] + - [[#when-moving-entries-up-and-down-in-the-buffer-use-j-and-k-instead-of--and-][When moving entries up and down in the buffer use `j` and `k` instead of `↑` and `↓`]] + - [[#auto-save-org-mode-files][Auto save org-mode files]] - [[#org-protocol-capture-html][org-protocol-capture-html]] + - [[#require-package][Require package]] - [[#org-capture-templates][org-capture-templates]] - [[#capture-web-data-for-org-protocol-capture-html][Capture web data for org-protocol-capture-html]] - [[#mu4e][mu4e]] + - [[#setup-mu4e-with-multiple-profiles][Setup mu4e with multiple profiles]] - [[#elfeed][Elfeed]] - [[#elfeed-and-elfeed-protocol-to-read-feeds][elfeed and elfeed-protocol to read feeds.]] - [[#elfeed-org][elfeed-org]] - [[#elfeed-goodies][elfeed-goodies]] - [[#spelling][Spelling]] + - [[#set-dictionaries-for-languages-i-use][Set dictionaries for languages I use]] * General settings -[[https://raw.githubusercontent.com/hlissner/emacs-doom-themes/screenshots/doom-molokai.png][doom-molokai screenshot]] - -Variable font sizes depending on screen width. Set font to [[https://www.jetbrains.com/lp/mono/][JetBrains Mono]] +** Variable font sizes depending on screen width. Set font to [[https://www.jetbrains.com/lp/mono/][JetBrains Mono]] #+BEGIN_SRC emacs-lisp (when window-system (if (> (x-display-pixel-width) 2560) @@ -25,12 +33,11 @@ Variable font sizes depending on screen width. Set font to [[https://www.jetbrai (setq doom-font (font-spec :family "JetBrains Mono" :size 16)))) #+END_SRC -Theme is set to doom-molokai from [[https://github.com/hlissner/emacs-doom-themes][doom-themes]] +** Theme is set to doom-molokai from [[https://github.com/hlissner/emacs-doom-themes][doom-themes]] #+BEGIN_SRC emacs-lisp (setq doom-theme 'doom-molokai) #+END_SRC - -Fetch password from authinfo +** Fetch password from authinfo #+BEGIN_SRC emacs-lisp (defun my-fetch-password (&rest params) (require 'auth-source) @@ -43,17 +50,14 @@ Fetch password from authinfo (error "Password not found for %S" params)))) #+END_SRC * [[https://www.projectile.mx/en/latest/][Projectile]] -Set default paths [[https://www.projectile.mx/en/latest/][projectile]] should search - +** Set default paths [[https://www.projectile.mx/en/latest/][projectile]] should search #+BEGIN_SRC emacs-lisp (use-package! projectile :config (setq projectile-project-search-path '("~/devel/personal/" "~/devel/andthensome/" "~/Documents/" "~/dotfiles" "~/private-dotfiles"))) ; Default paths #+END_SRC - * [[https://github.com/jorgenschaefer/circe][Circe]] -Connect to [[https://wiki.znc.in/ZNC][ZNC]]. Passwords are gotten from [[https://www.passwordstore.org/][Password Store]]. - +** Connect to [[https://wiki.znc.in/ZNC][ZNC]]. Passwords are gotten from [[https://www.passwordstore.org/][Password Store]]. #+BEGIN_SRC emacs-lisp (use-package! circe :config @@ -79,10 +83,9 @@ Connect to [[https://wiki.znc.in/ZNC][ZNC]]. Passwords are gotten from [[https:/ ) (add-hook 'circe-channel-mode-hook 'enable-lui-autopaste) #+END_SRC - * [[https://orgmode.org/][Org mode]] ** General settings -When moving entries up and down in the buffer use `j` and `k` instead of `↑` and `↓` +*** When moving entries up and down in the buffer use `j` and `k` instead of `↑` and `↓` #+BEGIN_SRC emacs-lisp (after! org (map! :map org-mode-map @@ -90,8 +93,7 @@ When moving entries up and down in the buffer use `j` and `k` instead of `↑` a :n "M-k" #'org-metaup) ) #+END_SRC - -Auto save org-mode files +*** Auto save org-mode files #+BEGIN_SRC emacs-lisp (add-hook 'auto-save-hook 'org-save-all-org-buffers) #+END_SRC @@ -106,7 +108,7 @@ Auto save org-mode files org-startup-with-inline-images t) #+END_SRC ** [[https://github.com/alphapapa/org-protocol-capture-html][org-protocol-capture-html]] -Require package +*** Require package #+BEGIN_SRC emacs-lisp (use-package! org-protocol-capture-html) #+END_SRC @@ -120,7 +122,7 @@ Require package ) #+END_SRC * [[https://www.djcbsoftware.nl/code/mu/mu4e.html][mu4e]] -Setup mu4e with multiple profiles +** Setup mu4e with multiple profiles #+BEGIN_SRC emacs-lisp (use-package! mu4e :config @@ -227,7 +229,7 @@ Setup mu4e with multiple profiles (elfeed-goodies/setup)) #+END_SRC * Spelling -Set dictionaries for languages I use +** Set dictionaries for languages I use #+BEGIN_SRC emacs-lisp (with-eval-after-load "ispell" (setq ispell-program-name "hunspell") diff --git a/emacs/.config/doom/init.el b/emacs/.config/doom/init.el index c0c58a5..3a66467 100644 --- a/emacs/.config/doom/init.el +++ b/emacs/.config/doom/init.el @@ -77,11 +77,11 @@ ledger ; an accounting system in Emacs markdown ; writing docs for people to ignore (org ; organize your plain life in plain text + +roam +dragndrop ; drag & drop files/images into org buffers - +ipython ; ipython/jupyter support for babel +pandoc ; export-with-pandoc support +present) ; using org-mode for presentations - (php + (php +lsp) ; perl's insecure younger brother (python +lsp) ; beautiful is better than ugly diff --git a/install b/install index 354095e..cd1d0fa 100755 --- a/install +++ b/install @@ -1,7 +1,7 @@ #!/usr/bin/env fish # Prerequisite & inistalled apps -set prerequisiteApps bat broot brave caffeine-ng exa fzf go isync imagemagick lightdm-gtk-greeter mailcap mpv deadd-notification-center-bin npm pamixer pfetch pulseaudio pulsemixer python pywal stow sxiv tldr udisks xwallpaper zathura +set prerequisiteApps bat broot brave caffeine-ng exa fzf go graphviz isync imagemagick lightdm-gtk-greeter mailcap mpv deadd-notification-center-bin npm pamixer pfetch pulseaudio pulsemixer python pywal stow sxiv tldr udisks xwallpaper zathura set prerequisiteFonts otf-nerd-fonts-fira-code noto-fonts ttf-unifont set prerequisiteLsp bash-language-server ccls php-language-server python-language-server typescript-language-server vscode-css-languageserver vscode-html-languageserver nodejs-intelephense set configuredApps alacritty bspwm castero emacs firejail git gnupg gtk lf deadd-notification-center-bin mpd ncmpcpp neomutt neovim picom redshift sxhkd tmux tuir weechat