From 0f873d646031971dd37824181b65ce457576749e Mon Sep 17 00:00:00 2001 From: Matias Linares Date: Mon, 25 Sep 2023 09:33:17 -0300 Subject: Add emacs configuration --- emacs/custom-org-mode.el | 58 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 emacs/custom-org-mode.el (limited to 'emacs/custom-org-mode.el') 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 -- cgit v1.2.3-70-g09d2