2021-04-30 10:04:23 +00:00
|
|
|
; Package repos
|
|
|
|
|
2021-04-30 06:07:42 +00:00
|
|
|
(require 'package)
|
|
|
|
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
|
|
|
|
(package-initialize)
|
|
|
|
|
2021-04-30 10:04:23 +00:00
|
|
|
; THEME
|
2021-10-03 15:30:04 +00:00
|
|
|
(load-theme 'twilight t)
|
2021-04-30 06:07:42 +00:00
|
|
|
|
|
|
|
;; custom
|
|
|
|
(setq custom-file "~/.emacs.d/custom.el")
|
|
|
|
(load custom-file)
|
|
|
|
|
2021-04-30 10:04:23 +00:00
|
|
|
; General configuration
|
|
|
|
|
2021-04-30 06:07:42 +00:00
|
|
|
;; no startup message
|
|
|
|
(setq inhibit-startup-message t)
|
|
|
|
|
|
|
|
;; no toolbar
|
|
|
|
(progn
|
|
|
|
(if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
|
|
|
|
(menu-bar-mode -1)
|
|
|
|
(scroll-bar-mode -1))
|
|
|
|
|
|
|
|
;; don't ask to spell out "yes"
|
|
|
|
(fset 'yes-or-no-p 'y-or-n-p)
|
|
|
|
|
|
|
|
;; show line numbers
|
|
|
|
(global-display-line-numbers-mode)
|
2021-05-01 14:07:54 +00:00
|
|
|
;; open links in eww
|
|
|
|
(setq browse-url-browser-function 'eww-browse-url)
|
2021-05-02 07:08:29 +00:00
|
|
|
;;; No cookies
|
|
|
|
(setq url-cookie-trusted-urls '()
|
|
|
|
url-cookie-untrusted-urls '(".*"))
|
2021-05-19 08:36:15 +00:00
|
|
|
|
2021-05-02 07:17:00 +00:00
|
|
|
;; general keybindings
|
2021-05-19 08:36:15 +00:00
|
|
|
|
2021-05-02 07:17:00 +00:00
|
|
|
;;; Zooming
|
|
|
|
(global-set-key (kbd "C-=") 'text-scale-increase)
|
|
|
|
(global-set-key (kbd "C--") 'text-scale-decrease)
|
2021-04-30 10:04:23 +00:00
|
|
|
|
2021-05-19 08:36:15 +00:00
|
|
|
;;; Calendar
|
|
|
|
(global-set-key (kbd "C-x c") 'calendar)
|
|
|
|
|
2021-04-30 13:40:44 +00:00
|
|
|
; org-mode
|
|
|
|
;; Enable org-mode
|
|
|
|
(require 'org)
|
2021-05-19 06:33:00 +00:00
|
|
|
(global-set-key (kbd "C-c l") 'org-store-link)
|
|
|
|
(global-set-key (kbd "C-c a") 'org-agenda)
|
|
|
|
(global-set-key (kbd "C-c c") 'org-capture)
|
2021-10-06 11:27:31 +00:00
|
|
|
(setq org-agenda-files '("~/org/gru/"
|
|
|
|
"~/org/roam/"
|
2021-10-15 09:25:30 +00:00
|
|
|
"~/org/roam/daily"
|
2021-10-06 11:27:31 +00:00
|
|
|
"~/org/agenda/"))
|
2021-10-15 09:25:30 +00:00
|
|
|
(setq org-html-validation-link nil)
|
|
|
|
|
|
|
|
;; Org Roam
|
2021-10-06 11:27:31 +00:00
|
|
|
|
2021-10-03 15:30:04 +00:00
|
|
|
;(make-directory "~/org/roam")
|
|
|
|
(setq org-roam-directory "~/org/roam")
|
2021-10-06 11:27:31 +00:00
|
|
|
(setq org-roam-completion-everywhere t)
|
2021-10-03 15:30:04 +00:00
|
|
|
(setq org-roam-v2-ack t)
|
2021-10-06 11:27:31 +00:00
|
|
|
(global-set-key (kbd "C-c n l") 'org-roam-buffer-toggle)
|
|
|
|
(global-set-key (kbd "C-c n f") 'org-roam-node-find)
|
|
|
|
(global-set-key (kbd "C-c n i") 'org-roam-node-insert)
|
|
|
|
(global-set-key (kbd "C-M-i") 'completion-at-point)
|
2021-10-15 09:25:30 +00:00
|
|
|
;;; Org Roam dailies
|
|
|
|
(require 'org-roam-dailies)
|
|
|
|
(global-set-key (kbd "C-c n d") 'org-roam-dailies-map)
|
|
|
|
(global-set-key (kbd "C-c n d Y") 'org-roam-dailies-capture-yesterday)
|
|
|
|
(global-set-key (kbd "C-c n d T") 'org-roam-dailies-capture-tomorrow)
|
2021-10-03 15:30:04 +00:00
|
|
|
(org-roam-db-autosync-mode)
|