Reorganized some config and updated olivetti style

This commit is contained in:
Emmet 2023-08-27 09:29:42 -05:00
parent c12ed80a71
commit 67cb2d49d9
2 changed files with 24 additions and 23 deletions

View file

@ -126,6 +126,15 @@ Teach him how to program and you will frustrate him for a lifetime."
:face 'font-lock-keyword-face)) :face 'font-lock-keyword-face))
(dashboard-setup-startup-hook) (dashboard-setup-startup-hook)
;; Smooth scrolling
(good-scroll-mode 1)
(setq good-scroll-duration 0.5
good-scroll-step 270
good-scroll-render-rate 0.03)
(global-set-key (kbd "<next>") #'good-scroll-up-full-screen)
(global-set-key (kbd "<prior>") #'good-scroll-down-full-screen)
;; Requires for faster loading ;; Requires for faster loading
(require 'org-agenda) (require 'org-agenda)
(require 'dired) (require 'dired)
@ -263,17 +272,6 @@ Teach him how to program and you will frustrate him for a lifetime."
(require 'org-phscroll)) (require 'org-phscroll))
(setq phscroll-calculate-in-pixels t) (setq phscroll-calculate-in-pixels t)
;; Smooth scrolling
(good-scroll-mode 1)
(setq good-scroll-duration 0.5
good-scroll-step 270
good-scroll-render-rate 0.03)
(global-set-key (kbd "<next>") #'good-scroll-up-full-screen)
(global-set-key (kbd "<prior>") #'good-scroll-down-full-screen)
(require 'org-download) (require 'org-download)
;; Drag-and-drop to `dired` ;; Drag-and-drop to `dired`
@ -705,6 +703,9 @@ same directory as the org-buffer and insert a link to this file."
(file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n") (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n")
:unnarrowed t)))) :unnarrowed t))))
(setq olivetti-style 'fancy
olivetti-margin-width 100)
(setq-default olivetti-body-width 100)
(defun org-roam-olivetti-mode () (defun org-roam-olivetti-mode ()
(interactive) (interactive)
(if (org-roam-file-p) (if (org-roam-file-p)

View file

@ -187,6 +187,15 @@ Teach him how to program and you will frustrate him for a lifetime."
:face 'font-lock-keyword-face)) :face 'font-lock-keyword-face))
(dashboard-setup-startup-hook) (dashboard-setup-startup-hook)
;; Smooth scrolling
(good-scroll-mode 1)
(setq good-scroll-duration 0.5
good-scroll-step 270
good-scroll-render-rate 0.03)
(global-set-key (kbd "<next>") #'good-scroll-up-full-screen)
(global-set-key (kbd "<prior>") #'good-scroll-down-full-screen)
;; Requires for faster loading ;; Requires for faster loading
(require 'org-agenda) (require 'org-agenda)
(require 'dired) (require 'dired)
@ -331,17 +340,6 @@ Teach him how to program and you will frustrate him for a lifetime."
(require 'org-phscroll)) (require 'org-phscroll))
(setq phscroll-calculate-in-pixels t) (setq phscroll-calculate-in-pixels t)
;; Smooth scrolling
(good-scroll-mode 1)
(setq good-scroll-duration 0.5
good-scroll-step 270
good-scroll-render-rate 0.03)
(global-set-key (kbd "<next>") #'good-scroll-up-full-screen)
(global-set-key (kbd "<prior>") #'good-scroll-down-full-screen)
#+END_SRC #+END_SRC
*** Org Download, Image Capture, and Opening Files in External Programs *** Org Download, Image Capture, and Opening Files in External Programs
#+BEGIN_SRC emacs-lisp :tangle config.el #+BEGIN_SRC emacs-lisp :tangle config.el
@ -822,6 +820,9 @@ exit
#+END_SRC #+END_SRC
*** Org Roam Olivetti Mode *** Org Roam Olivetti Mode
#+BEGIN_SRC emacs-lisp :tangle config.el #+BEGIN_SRC emacs-lisp :tangle config.el
(setq olivetti-style 'fancy
olivetti-margin-width 100)
(setq-default olivetti-body-width 100)
(defun org-roam-olivetti-mode () (defun org-roam-olivetti-mode ()
(interactive) (interactive)
(if (org-roam-file-p) (if (org-roam-file-p)
@ -833,7 +834,6 @@ exit
#+END_SRC #+END_SRC
*** Org Roam Dynamic Blocks *** Org Roam Dynamic Blocks
This needs fixing on NixOS:
#+BEGIN_SRC emacs-lisp :tangle config.el #+BEGIN_SRC emacs-lisp :tangle config.el
(add-load-path! "~/.emacs.d/org-nursery/lisp") (add-load-path! "~/.emacs.d/org-nursery/lisp")
(require 'org-roam-dblocks) (require 'org-roam-dblocks)