diff options
Diffstat (limited to '.config/doom/config.el')
-rw-r--r-- | .config/doom/config.el | 196 |
1 files changed, 13 insertions, 183 deletions
diff --git a/.config/doom/config.el b/.config/doom/config.el index 6a25c69..0c6cc31 100644 --- a/.config/doom/config.el +++ b/.config/doom/config.el @@ -103,18 +103,19 @@ ;; Dired -(use-package dired - :ensure nil - :commands (dired dired-jump) - :bind (("C-x C-j" . dired-jump)) - :config - (evil-collection-define-key 'normal' dired-mode-map - "h" 'dired-up-directory - "l" 'dired-find-file - "R" 'dired-do-rename - "D" 'dired-do-delete - "m" 'dired-mark - )) +(load! "diredConfig") +;;Telega +(load! "telegaConfig") +;; EXWM +(load! "myExwm") +;;Elfeed +(load! "elfeedConfig") +;; Org +(load! "orgConfig") +(load! "org-themes") + + + (defvar my-linum-current-line-number) (setq linum-format 'my-linum-relative-line-numbers) @@ -131,71 +132,6 @@ ad-do-it)) (ad-activate 'linum-update) -;; EXWM -(require 'exwm-randr) -(setq exwm-randr-workspace-monitor-plist '(0 "DisplayPort-2" 1 "HDMI-A-0")) -(add-hook 'exwm-randr-screen-change-hook - (lambda () - (start-process-shell-command - "xrandr" nil "xrandr --output DisplayPort-0 --off --output DisplayPort-1 --off --output DisplayPort-2 --primary --mode 2560x1440 --pos 1920x0 --rotate normal --output HDMI-A-0 --mode 1920x1080 --pos 0x0 --rotate normal"))) -(exwm-randr-enable) -(require 'exwm) -(require 'exwm-config) -(exwm-enable) -(require 'exwm-systemtray) -(exwm-systemtray-enable) -(map! :desc "Change workspaces" :n "s-SPC" #'exwm-workspace-switch) - - -;; (start-process-shell-command -;; "setxkbmap -option caps:swapescape") -;;Vterm -;;(require 'vterm) -;; (map! :leader -;; (:prefix-map ("o" "Open")) -;; :desc "Open vterm" "t" #'vterm) - -;;Elfeed -(require 'elfeed) -(map! :leader - (:prefix-map ("e" . "Elfeed") - :desc "Open elfeed" "o" #'elfeed - :desc "Update feed" "u" #'elfeed-update-feed - :desc "Update all" "a" #'elfeed-update)) -(use-package elfeed - :config - (setq elfeed-search-feed-face ":foreground #fff :weight bold" - elfeed-feeds (quote - ( - ("https://hackaday.com/blog/feed/" hackaday linux) - ("https://opensource.com/feed" opensource linux) - ("https://linux.softpedia.com/backend.xml" softpedia linux) - ("https://www.thelancet.com/rssfeed/ebiom_current.xml" Lancet ebiom) - ("https://www.thelancet.com/rssfeed/lancet_current.xml" Lancet lancet) - ("https://www.thelancet.com/rssfeed/ebiom_online.xml" LancetOnline ebiom) - ("https://www.thelancet.com/rssfeed/lancet_online.xml" LancetOnline lancet) - ("https://www.thelancet.com/rssfeed/lanmic_online.xml" LancetOnline Microbiology) - ("https://www.techrepublic.com/rssfeeds/topic/open-source/" techrepublic linu) - ))) - - ) - -(use-package elfeed-goodies - :init - (elfeed-goodies/setup) - :config - (setq elfeed-goodies/entry-pane-size 0.5)) - -(defun elfeed-search-format-date (date) - (format-time-string "%Y-%m-%d %H:%M" (seconds-to-time date))) -(add-hook 'elfeed-show-mode-hook 'visual-line-mode) -(evil-define-key 'normal elfeed-show-mode-map - (kbd "J") 'elfeed-goodies/split-show-next - (kbd "K") 'elfeed-goodies/split-show-prev) -(evil-define-key 'normal elfeed-search-mode-map - (kbd "J") 'elfeed-goodies/split-show-next - (kbd "K") 'elfeed-goodies/split-show-prev) - ;;Playerctl (require 'playerctl) (map! :leader @@ -205,29 +141,12 @@ :desc "Back" "b" #'playerctl-previous-song )) -;; Neotree -;; (map! :leader -;; (:prefix-map ("o" . "Open") -;; :desc "Neotree" "n" #'neotree)) - -(require 'elcord) -;;(elcord-mode) - ;; EWW (require 'eww) (map! :leader (:prefix-map ("E" . "EWW") :desc "search" "o" #'eww)) -(require 'telega) -(map! :leader - (:prefix-map ("T" . "Telegram") - :desc "Home" "h" #'telega - :desc "Call" "c" #'telega-chat-call - :desc "Discard call" "d" #'telega-voip-discard - :desc "Voice message" "v" #'telega-chatbuf-attach-voice-note - )) - ;; Emmet (require 'emmet-mode) (add-hook 'sgml-mode-hook 'emmet-mode) ;; Auto-start on any markup modes @@ -240,93 +159,4 @@ ;; only " /", "/" and "" are valid. ;; eg. <meta />, <meta/>, <meta> -;; Org Publish -(setq org-publish-use-timestamps-flags nil) -(setq org-export-with-broken-links t) -(setq org-publish-project-alist - '(("thanos_apollo" - :base-directory "~/Developer/Web/my_site/" - :base-extension "org" - :publishing-rectory "~/Developer/Web/my_site/html/" - :recurse t - :publishing-function org-html-publish-to-html - :headline-levels 4 - :auto-preamble t) - ("org-static" - :base-directory "~/org/website" - :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|ogg\\|swf" - :publishing-directory "~/public_html" - :recursive t - :publishing-function org-publish-attachment))) - -(require 'emms-setup) -(setq emms-player-list '(emms-player-mpv)) -(setq emms-source-file-default-directory "/home/apollo/Music/lofi") - -(require 'flycheck) -(setq-default flycheck-disabled-checkers - (append flycheck-disabled-checkers - '(javascript-jshint json-jsonlist))) - -(after! org - (setq org-directory "~/Org/" - org-agenda-files '("~/Org/agenda.org") - org-default-notes-file (expand-file-name "notes.org" org-directory) - org-ellipsis " ▼ " - org-superstar-headline-bullets-list '("◉" "●" "✶" "◆" "●" "○" "◆") - org-superstar-itembullet-alist '((?+ . ?➤) (?- . ?✦)) ; changes +/- symbols in item lists - org-log-done 'time - org-hide-emphasis-markers t - ;; ex. of org-link-abbrev-alist in action - ;; [[arch-wiki:Name_of_Page][Description]] - org-link-abbrev-alist ; This overwrites the default Doom org-link-abbrev-list - '(("google" . "http://www.google.com/search?q=") - ("arch-wiki" . "https://wiki.archlinux.org/index.php/") - ("ddg" . "https://duckduckgo.com/?q=") - ("wiki" . "https://en.wikipedia.org/wiki/")) - org-table-convert-region-max-lines 20000 - org-todo-keywords ; This overwrites the default Doom org-todo-keywords - '((sequence - "TODO(t)" ; A task that is ready to be tackled - "BLOG(b)" ; Blog writing assignments - "GYM(g)" ; Things to accomplish at the gym - "IMPR(p)" ; Needs improvements - "WAIT(w)" ; Something is holding up this task - "|" ; The pipe necessary to separate "active" states and "inactive" states - "DONE(d)" ; Task has been completed - "CANCELLED(c)" )))) ; Task has been cancelled - -(defun apollo/org-colors-primary () - "My custom org colors for doom themes" - (interactive) - (dolist - (face - '((org-level-1 1.70 "#51afef" ultra-bold) - (org-level-2 1.55 "#7FBCD2" extra-bold) - (org-level-3 1.40 "#da8548" bold) - (org-level-4 1.20 "#da8548" semi-bold) - (org-level-5 1.20 "#5699af" normal) - (org-level-6 1.20 "#a9a1e1" normal) - (org-level-7 1.10 "#46d9ff" normal) - (org-level-8 1.00 "#ff6c6b" normal))) - (set-face-attribute (nth 0 face) nil :font doom-font :weight (nth 3 face) :height (nth 1 face) :foreground (nth 2 face))) - (set-face-attribute 'org-table nil :font doom-font :weight 'normal :height 1.0 :foreground "#A66CFF" - )) - -(defun apollo/org-colors-monokai-pro () - "Enable Monokai Pro colors for Org headers." - (interactive) - (dolist - (face - '((org-level-1 1.7 "#78dce8" ultra-bold) - (org-level-2 1.6 "#ab9df2" extra-bold) - (org-level-3 1.5 "#a9dc76" bold) - (org-level-4 1.4 "#fc9867" semi-bold) - (org-level-5 1.3 "#ff6188" normal) - (org-level-6 1.2 "#ffd866" normal) - (org-level-7 1.1 "#78dce8" normal) - (org-level-8 1.0 "#ab9df2" normal))) - (set-face-attribute (nth 0 face) nil :font doom-variable-pitch-font :weight (nth 3 face) :height (nth 1 face) :foreground (nth 2 face))) - (set-face-attribute 'org-table nil :font doom-font :weight 'normal :height 1.0 :foreground "#bfafdf")) - (apollo/org-colors-primary) |