chore: updates
This commit is contained in:
parent
e7eda8979c
commit
b75c6b520f
9
init.el
9
init.el
|
@ -10,6 +10,12 @@
|
||||||
;; Increase the threshold - performance
|
;; Increase the threshold - performance
|
||||||
(setq gc-cons-threshold (* 50 1000 1000))
|
(setq gc-cons-threshold (* 50 1000 1000))
|
||||||
|
|
||||||
|
;; Set the font
|
||||||
|
(add-to-list 'default-frame-alist
|
||||||
|
'(font . "Iosevka SS12-11"))
|
||||||
|
(set-face-attribute 'default nil :family "Iosevka")
|
||||||
|
(set-face-attribute 'variable-pitch nil :family "Iosevka")
|
||||||
|
|
||||||
;; Disable Emacs' GTK decorations. Done in this file otherwise done too late.
|
;; Disable Emacs' GTK decorations. Done in this file otherwise done too late.
|
||||||
(tool-bar-mode -1)
|
(tool-bar-mode -1)
|
||||||
(scroll-bar-mode -1)
|
(scroll-bar-mode -1)
|
||||||
|
@ -20,6 +26,9 @@
|
||||||
;; Define the leader-key to use.
|
;; Define the leader-key to use.
|
||||||
(defconst leader-key "SPC")
|
(defconst leader-key "SPC")
|
||||||
|
|
||||||
|
;; Emacs 30 with straight.el
|
||||||
|
(setq straight-repository-branch "develop")
|
||||||
|
|
||||||
;; Straight.el bootstrap
|
;; Straight.el bootstrap
|
||||||
(defvar bootstrap-version)
|
(defvar bootstrap-version)
|
||||||
(let ((bootstrap-file
|
(let ((bootstrap-file
|
||||||
|
|
|
@ -13,6 +13,15 @@
|
||||||
; Line Wrapping
|
; Line Wrapping
|
||||||
(global-visual-line-mode 1) ; Prevent wrapping of words
|
(global-visual-line-mode 1) ; Prevent wrapping of words
|
||||||
|
|
||||||
|
;; yasnippet - A template system for Emacs
|
||||||
|
(use-package yasnippet
|
||||||
|
:config
|
||||||
|
(yas-reload-all)
|
||||||
|
(yas-global-mode))
|
||||||
|
;; yasnippet-snippets - A snippet collection package by AndreaCotti
|
||||||
|
(use-package yasnippet-snippets
|
||||||
|
:after yasnippet)
|
||||||
|
|
||||||
;; evil - A Vi Layer inside of Emacs
|
;; evil - A Vi Layer inside of Emacs
|
||||||
(use-package evil
|
(use-package evil
|
||||||
:custom
|
:custom
|
||||||
|
|
|
@ -16,20 +16,26 @@
|
||||||
'("🞉" "🞈" "🞇" "🞆" "🞅" "🞄"))
|
'("🞉" "🞈" "🞇" "🞆" "🞅" "🞄"))
|
||||||
:hook org-mode)
|
:hook org-mode)
|
||||||
|
|
||||||
(with-eval-after-load 'org-superstar
|
;; Prevent the usage of automatic <> delimiters in org mode (conflict with snippets)
|
||||||
|
(add-hook 'org-mode-hook (lambda ()
|
||||||
|
(setq-local electric-pair-inhibit-predicate
|
||||||
|
`(lambda (c)
|
||||||
|
(if (char-equal c ?<) t (,electric-pair-inhibit-predicate c))))))
|
||||||
|
|
||||||
|
(with-eval-after-load 'org
|
||||||
;; Faces for the font sizes of org-mode headings
|
;; Faces for the font sizes of org-mode headings
|
||||||
(set-face-attribute 'org-level-8 nil :weight 'bold :inherit 'default)
|
(set-face-attribute 'org-level-8 nil :weight 'bold)
|
||||||
(set-face-attribute 'org-level-7 nil :inherit 'org-level-8)
|
(set-face-attribute 'org-level-7 nil :weight 'bold)
|
||||||
(set-face-attribute 'org-level-6 nil :inherit 'org-level-8)
|
(set-face-attribute 'org-level-6 nil :weight 'bold)
|
||||||
(set-face-attribute 'org-level-5 nil :inherit 'org-level-8)
|
(set-face-attribute 'org-level-5 nil :weight 'bold :height 1.1)
|
||||||
(set-face-attribute 'org-level-4 nil :inherit 'org-level-8)
|
(set-face-attribute 'org-level-4 nil :weight 'bold :height 1.2)
|
||||||
(set-face-attribute 'org-level-3 nil :inherit 'org-level-8 :height 1.15)
|
(set-face-attribute 'org-level-3 nil :weight 'bold :height 1.3)
|
||||||
(set-face-attribute 'org-level-2 nil :inherit 'org-level-8 :height 1.35)
|
(set-face-attribute 'org-level-2 nil :weight 'bold :height 1.4)
|
||||||
(set-face-attribute 'org-level-1 nil :inherit 'org-level-8 :height 1.65)
|
(set-face-attribute 'org-level-1 nil :weight 'bold :height 1.5)
|
||||||
(set-face-attribute 'org-document-title nil
|
(set-face-attribute 'org-document-title nil
|
||||||
:height 1.85
|
:height 1.65
|
||||||
:foreground 'unspecified
|
:foreground 'unspecified
|
||||||
:inherit 'org-level-8))
|
:weight 'bold))
|
||||||
|
|
||||||
(with-eval-after-load 'org
|
(with-eval-after-load 'org
|
||||||
;; Customize org-mode's default functionality
|
;; Customize org-mode's default functionality
|
||||||
|
@ -44,7 +50,7 @@
|
||||||
org-pretty-entities t
|
org-pretty-entities t
|
||||||
org-adapt-indentation t)
|
org-adapt-indentation t)
|
||||||
|
|
||||||
(plist-put org-format-latex-options :scale 2.5) ; Scale up latex elements
|
;; (plist-put org-format-latex-options :scale 2.5) ; Scale up latex elements (HiDPI)
|
||||||
(setq org-directory "~/Org/") ; Set the folder used by org-mode
|
(setq org-directory "~/Org/") ; Set the folder used by org-mode
|
||||||
(setq org-agenda-files (quote ("~/Org/")))
|
(setq org-agenda-files (quote ("~/Org/")))
|
||||||
(setq org-roam-directory "~/Org/Roam/")) ; Set the folder used by org-roam
|
(setq org-roam-directory "~/Org/Roam/")) ; Set the folder used by org-roam
|
||||||
|
|
Reference in a new issue