From 425362a43735597db0bd594d01d831794078b8e5 Mon Sep 17 00:00:00 2001 From: Moritz Date: Tue, 22 Jun 2021 23:12:25 +0200 Subject: [PATCH] added better ligatures and org mode --- .config/doom/config.el | 26 +--- .config/doom/custom.el | 13 ++ .config/doom/init.el | 262 ++++++++++++++++++++--------------------- 3 files changed, 149 insertions(+), 152 deletions(-) create mode 100644 .config/doom/custom.el diff --git a/.config/doom/config.el b/.config/doom/config.el index 039a2a5..e0065ce 100644 --- a/.config/doom/config.el +++ b/.config/doom/config.el @@ -29,7 +29,7 @@ ;; If you use `org' and don't want your org files in the default location below, ;; change `org-directory'. It must be set before org loads! -(setq org-directory "~/org/") +(setq org-directory "~/Documents/org") ;; This determines the style of line numbers in effect. If set to `nil', line ;; numbers are disabled. For relative line numbers, set this to `relative'. @@ -62,24 +62,8 @@ (interactive) (let* ((dic ispell-current-dictionary) (change (if (string= dic "deutsch") "english" "deutsch"))) - (ispell-change-dictionary change) - (message "Dictionary switched from %s to %s" dic change) - )) -(global-set-key (kbd "") 'fd-switch-dictionary) + (ispell-change-dictionary change) + (message "Dictionary switched from %s to %s" dic change) + )) + (global-set-key (kbd "") 'fd-switch-dictionary) -;; ;; Enable the www ligature in every possible major mode -(ligature-set-ligatures 't '("www")) - -;; Enable ligatures in programming modes -(ligature-set-ligatures 'prog-mode '("www" "**" "***" "**/" "*>" "*/" "::" - ":::" ":=" "!!" "!=" "!==" "-->" "->" "->>" - "-<" "-<<" "-~" "#{" "#[" "##" "###" "####" "#(" "#?" "#_" - "#_(" ".-" ".=" ".." "..<" "..." "?=" "??" ";;" "/**" - "/=" "/==" "/>" "//" "///" "&&" "||" "||=" "|=" "|>" "^=" "$>" - "++" "+++" "+>" "=:=" "==" "===" "==>" "=>" "=>>" "<=" - "=<<" "=/=" ">-" ">=" ">=>" ">>" ">>-" ">>=" ">>>" "<*" - "<*>" "<|" "<|>" "<$" "<$>" "