diff options
author | Matias Linares <matias.linares@comprandoengrupo.net> | 2023-09-25 09:33:17 -0300 |
---|---|---|
committer | Matias Linares <matias.linares@comprandoengrupo.net> | 2023-09-25 09:33:17 -0300 |
commit | 0f873d646031971dd37824181b65ce457576749e (patch) | |
tree | 4c897c8af19d50aa6746ec0c08b90b7b57046c4d /emacs/nano.el | |
parent | 6c4c5513618105ea4ce081b04e0545c7c05431d8 (diff) | |
download | dotfiles-0f873d646031971dd37824181b65ce457576749e.tar.gz |
Add emacs configuration
Diffstat (limited to 'emacs/nano.el')
-rw-r--r-- | emacs/nano.el | 34 |
1 files changed, 34 insertions, 0 deletions
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") |