summaryrefslogtreecommitdiff
path: root/emacs/custom-org-mode.el
diff options
context:
space:
mode:
authorMatias Linares <matias.linares@comprandoengrupo.net>2023-09-25 09:33:17 -0300
committerMatias Linares <matias.linares@comprandoengrupo.net>2023-09-25 09:33:17 -0300
commit0f873d646031971dd37824181b65ce457576749e (patch)
tree4c897c8af19d50aa6746ec0c08b90b7b57046c4d /emacs/custom-org-mode.el
parent6c4c5513618105ea4ce081b04e0545c7c05431d8 (diff)
downloaddotfiles-0f873d646031971dd37824181b65ce457576749e.tar.gz
Add emacs configuration
Diffstat (limited to 'emacs/custom-org-mode.el')
-rw-r--r--emacs/custom-org-mode.el58
1 files changed, 58 insertions, 0 deletions
diff --git a/emacs/custom-org-mode.el b/emacs/custom-org-mode.el
new file mode 100644
index 0000000..0cdb277
--- /dev/null
+++ b/emacs/custom-org-mode.el
@@ -0,0 +1,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