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/nano.el | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 emacs/nano.el (limited to 'emacs/nano.el') diff --git a/emacs/nano.el b/emacs/nano.el new file mode 100644 index 0000000..676fc21 --- /dev/null +++ b/emacs/nano.el @@ -0,0 +1,34 @@ +(require 'package) +(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)) +(add-to-list 'load-path "~/.emacs.d/libs/nano-emacs") +;; OrgMode +(add-hook 'org-mode-hook (lambda () + (auto-fill-mode) + ;;(variable-pitch-mode) + (bug-reference-mode))) +(setq org-edit-src-content-indentation 0) +(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)) +(use-package org-modern + :ensure t + :defer t + :init (global-org-modern-mode)) +(setq org-confirm-babel-evaluate nil) + + +(setq nano-font-family-monospaced "Roboto Mono") + +(load "~/.emacs.d/libs/nano-emacs/nano.el") -- cgit v1.2.3-70-g09d2