mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-19 07:05:51 +05:30
Reorganized some config and updated olivetti style
This commit is contained in:
parent
c12ed80a71
commit
67cb2d49d9
|
@ -126,6 +126,15 @@ Teach him how to program and you will frustrate him for a lifetime."
|
|||
:face 'font-lock-keyword-face))
|
||||
(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
|
||||
(require 'org-agenda)
|
||||
(require 'dired)
|
||||
|
@ -263,17 +272,6 @@ Teach him how to program and you will frustrate him for a lifetime."
|
|||
(require 'org-phscroll))
|
||||
(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)
|
||||
|
||||
;; 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")
|
||||
:unnarrowed t))))
|
||||
|
||||
(setq olivetti-style 'fancy
|
||||
olivetti-margin-width 100)
|
||||
(setq-default olivetti-body-width 100)
|
||||
(defun org-roam-olivetti-mode ()
|
||||
(interactive)
|
||||
(if (org-roam-file-p)
|
||||
|
|
|
@ -187,6 +187,15 @@ Teach him how to program and you will frustrate him for a lifetime."
|
|||
:face 'font-lock-keyword-face))
|
||||
(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
|
||||
(require 'org-agenda)
|
||||
(require 'dired)
|
||||
|
@ -331,17 +340,6 @@ Teach him how to program and you will frustrate him for a lifetime."
|
|||
(require 'org-phscroll))
|
||||
(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
|
||||
*** Org Download, Image Capture, and Opening Files in External Programs
|
||||
#+BEGIN_SRC emacs-lisp :tangle config.el
|
||||
|
@ -822,6 +820,9 @@ exit
|
|||
#+END_SRC
|
||||
*** Org Roam Olivetti Mode
|
||||
#+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 ()
|
||||
(interactive)
|
||||
(if (org-roam-file-p)
|
||||
|
@ -833,7 +834,6 @@ exit
|
|||
|
||||
#+END_SRC
|
||||
*** Org Roam Dynamic Blocks
|
||||
This needs fixing on NixOS:
|
||||
#+BEGIN_SRC emacs-lisp :tangle config.el
|
||||
(add-load-path! "~/.emacs.d/org-nursery/lisp")
|
||||
(require 'org-roam-dblocks)
|
||||
|
|
Loading…
Reference in a new issue