summaryrefslogtreecommitdiff
path: root/Developer/emacs/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'Developer/emacs/init.el')
-rw-r--r--Developer/emacs/init.el138
1 files changed, 131 insertions, 7 deletions
diff --git a/Developer/emacs/init.el b/Developer/emacs/init.el
index 422c2b9..a8e9178 100644
--- a/Developer/emacs/init.el
+++ b/Developer/emacs/init.el
@@ -21,9 +21,9 @@
;Initialize packages sources
(require 'package)
- (setq package-archives '(("melpa" . "https://melpa.org/packages/")
- ("org" . "https://orgmode.org/elpa/")
- ("elpa" . "https://elpa.gnu.org/packages/")))
+(setq package-archives '(("melpa" . "https://melpa.org/packages/")
+ ("org" . "https://orgmode.org/elpa/")
+ ("elpa" . "https://elpa.gnu.org/packages/")))
(package-initialize)
(unless package-archive-contents
@@ -193,8 +193,9 @@
(apollo/leader-keys
"ts" '(hydra-text-scale/body :which-key "scale text"))
-(use-package pdf-tools)
-
+(use-package pdf-tools
+ :config
+ (pdf-tools-install))
(use-package projectile
:diminish projectile-mode
@@ -206,13 +207,136 @@
(use-package counsel-projectile
:config (counsel-projectile-mode))
-
(use-package magit
:custom
(magit-display-buffer-function #'magit-display-buffer-same-window-except-diff-v1))
(apollo/leader-keys
"g" '(:ignore t :which-key "Git")
- "ga" '(magit-status :which-key "status"))
+ "gs" '(magit-status :which-key "status"))
+(defun apollo/org-mode-setup ()
+ (org-indent-mode)
+ (apollo/org-colors-dracula)
+ (setq evil-auto-indent nil))
+(use-package org
+ :hook (org-mode . apollo/org-mode-setup)
+ :config
+ (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 nil ;change to t to hide emphasis markers
+ ;; 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
+
+;; (use-package org-bullets
+;; :after org
+;; :hook (org-mode . org-bullets-mode)
+;; :custom
+;; (org-bullets-bullet-list '("●" "○" "●" "○" "●" "●" )))
+
+(use-package org-superstar
+ :after org
+ :hook (org-mode . org-superstar-mode)
+ )
+;;org themes
+(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 "Jetbrains Mono"
+ :weight (nth 3 face)
+ :height (nth 1 face)
+ :foreground (nth 2 face)))
+ (set-face-attribute 'org-table nil
+ :font "Jetbrains Mono"
+ :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 "JetBrains Mono"
+ :weight (nth 3 face)
+ :height (nth 1 face)
+ :foreground (nth 2 face)))
+ (set-face-attribute 'org-table nil
+ :font "JetBrains Mono"
+ :weight 'normal
+ :height 1.0
+ :foreground "#bfafdf"))
+
+(defun apollo/org-colors-dracula ()
+ "Enable Dracula colors for Org headers."
+ (interactive)
+ (dolist
+ (face
+ '((org-level-1 1.7 "#8be9fd" ultra-bold)
+ (org-level-2 1.6 "#bd93f9" extra-bold)
+ (org-level-3 1.5 "#50fa7b" bold)
+ (org-level-4 1.4 "#ff79c6" semi-bold)
+ (org-level-5 1.3 "#9aedfe" normal)
+ (org-level-6 1.2 "#caa9fa" normal)
+ (org-level-7 1.1 "#5af78e" normal)
+ (org-level-8 1.0 "#ff92d0" normal)))
+ (set-face-attribute (nth 0 face) nil
+ :font "JetBrains Mono"
+ :weight (nth 3 face)
+ :height (nth 1 face)
+ :foreground (nth 2 face)))
+ (set-face-attribute 'org-table nil
+ :font "JetBrains Mono"
+ :weight 'normal
+ :height 1.0
+ :foreground "#bfafdf"))
+
+
+(defun apollo/org-mode-visual-fill ()
+ (setq visual-fill-column-center-text nil)
+ (visual-fill-column-mode 1))
+
+;; (use-package visual-fill-column
+;; :hook (org-mode . apollo/org-mode-visual-fill))