summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorMatthew Kosarek <mattkae@protonmail.com>2023-07-17 09:34:33 -0400
committerMatthew Kosarek <mattkae@protonmail.com>2023-07-17 09:34:33 -0400
commitc7c9fe4a9a39337da622a4fa48cc79ad808fb3b9 (patch)
treed72f9b82a7b04e8a3b8743f9a3178668c01d483d /lisp
parent3598c11ad35d8aa662e2e98a5092bcdf6459cf55 (diff)
Even more org improvements
Diffstat (limited to 'lisp')
-rw-r--r--lisp/general.el26
-rw-r--r--lisp/org-custom.el4
2 files changed, 18 insertions, 12 deletions
diff --git a/lisp/general.el b/lisp/general.el
index 6d6973c..9ea8067 100644
--- a/lisp/general.el
+++ b/lisp/general.el
@@ -191,15 +191,15 @@
:ensure t)
;; Emojis
-;; (use-package emojify
-;; :ensure t
-;; :config
-;; (when (member "Segoe UI Emoji" (font-family-list))
-;; (set-fontset-font
-;; t 'symbol (font-spec :family "Segoe UI Emoji") nil 'prepend))
-;; (setq emojify-display-style 'unicode)
-;; (setq emojify-emoji-styles '(unicode))
-;; (bind-key* (kbd "C-c e") #'emojify-insert-emoji)) ; override binding in any mode
+(use-package emojify
+ :ensure t
+ :config
+ (when (member "Segoe UI Emoji" (font-family-list))
+ (set-fontset-font
+ t 'symbol (font-spec :family "Segoe UI Emoji") nil 'prepend))
+ (setq emojify-display-style 'unicode)
+ (setq emojify-emoji-styles '(unicode))
+ (bind-key* (kbd "C-c e") #'emojify-insert-emoji)) ; override binding in any mode
;; icons
(use-package all-the-icons
@@ -209,7 +209,7 @@
;; Global key binds
(bind-key* (kbd "M-.") 'xref-find-definitions)
(bind-key* (kbd "C-x k") 'kill-this-buffer)
-(bind-key* (kbd "C-C ;") 'treemacs)
+(bind-key* (kbd "C-;") 'treemacs)
(defun my-create-file (filename)
"Create a file and refresh neotree. FILENAME File to create."
@@ -363,5 +363,11 @@
(use-package yasnippet-snippets
:ensure t)
+(use-package centered-window
+ :ensure t
+ :config
+ (setq cwm-centered-window-width 180)
+ (centered-window-mode t))
+
(provide 'general)
;;; general.el ends here
diff --git a/lisp/org-custom.el b/lisp/org-custom.el
index 7d36bfb..32247e6 100644
--- a/lisp/org-custom.el
+++ b/lisp/org-custom.el
@@ -76,7 +76,7 @@
'(("d" "default" entry
"* %?"
:target (file+head "%<%Y-%m-%d>.org"
- "#+title: %<%Y-%m-%d>\n#+filetags: :dailies:\n\n* Timeline\n\n* Notes\n\n* Questions\n\n"))))
+ "#+title: %<%Y-%m-%d> 📰 \n#+filetags: :dailies:\n\n* Timeline\n\n* Notes\n\n* Questions\n\n"))))
(org-roam-setup)
)
@@ -84,7 +84,7 @@
'(("t" "Todo" entry (file+headline org-default-notes-file "Tasks")
"* TODO %?\n DEADLINE: %t")
("n" "Quick Notes" entry (file+headline org-default-notes-file "Quick Notes")
- "* %?Created on %U\n %i")))
+ "* %?\n Created on %U\n %i")))
(defun org-archive-done-tasks ()
"Archive all done tasks in an org subtree"