summaryrefslogtreecommitdiff
path: root/emacs/custom-org-mode.el
blob: 0cdb277f1ad2c32fb0e1bb5cf4c6dd34fdc0f821 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
;;; package --- custom-org-mode
;;; Commentary:
;; This is a package to setup an orgmode editor.

;;; Code:
;; Setup gargabe collection
(setq gc-cons-threshold (* 80 1000 1000))

(add-to-list 'load-path "~/.emacs.d/libs/nano-emacs")

(setq nano-font-family-monospaced "Roboto Mono")
(setq nano-font-family-proportional "Roboto Regular")
(setq nano-font-size 10)

(require 'nano-layout)
(require 'nano-theme-light)
(require 'nano-faces)
(nano-faces)
(require 'nano-theme)
(nano-theme)

(require 'nano-defaults)
;; Nano header & mode lines (optional)
(require 'nano-modeline)

;; Nano key bindings modification (optional)
(require 'nano-bindings)

;; Welcome message (optional)
(let ((inhibit-message t))
  (message "Welcome to GNU Emacs / N Λ N O edition")
  (message (format "Initialization time: %s" (emacs-init-time))))

;; (require 'nano-base-colors)


(require 'package)
;(require 'use-package)
;; Use https if enabled and add melpa.
(let* ((no-ssl (and (memq system-type '(windows-nt ms-dos))
		       (not (gnutls-available-p))))
	  (proto (if no-ssl "http" "https")))
  (add-to-list 'package-archives (cons "melpa" (concat proto "://melpa.org/packages/")) t)
  (package-initialize))

(use-package org-roam
  :ensure t
  :defer t
  :init (setq org-roam-v2-ack t)
  :custom
  (org-roam-directory "~/OrgRoam")
  :bind (("C-c n l" . org-roam-buffer-toggle)
	 ("C-c n f" . org-roam-node-find)
	 ("C-c n i" . org-roam-node-insert))
  :config
  (org-roam-setup))
(provide 'custom-org-mode)
;;; custom-org-mode.el ends here