diff --git a/config/emacs/emacs.org b/config/emacs/emacs.org new file mode 100644 index 00000000..e003e6ed --- /dev/null +++ b/config/emacs/emacs.org @@ -0,0 +1,45 @@ +#+title Sakomacs configuration +#+PROPERTY: header-args:emacs-lisp :tangle ./init-new.el + +* Emacs from scratch +where we are right now https://youtu.be/kkqVTDbfYp4?t=1373 + +* Usage +org-bable-tangle + +* ui configuration +#+begin_src emacs-lisp + ;; UI/UX + (setq inhibit-startup-message t) + ;; make it look like neovim a little + (scroll-bar-mode -1) + (tool-bar-mode -1) + (tooltip-mode -1) + (set-fringe-mode 10) + (menu-bar-mode -1) + ;; Line Numbers + (column-number-mode) + (global-display-line-numbers-mode t) + ;; disable line numbers on some modes + (dolist (mode '(org-mode-hook + term-mode-hook + eshell-mode-hook)) + (add-hook mode (lambda () (display-line-numbers-mode 0)))) + ;; Bell + (setq visible-bell t) +#+end_src + +* Fonts + +#+begin_src emacs-lisp + ;; Font + (set-face-attribute `default nil :font "JetBrains Mono" :height 125) + +#+end_src + +* Tangle Output +** TODO make init.el changable for this +#+begin_src emacs-lisp + (org-babel-tangle) +(org-babel-tangle-file "~/nixos/config/emacs/emacs.org +#+end_src diff --git a/config/emacs/emacs.org~ b/config/emacs/emacs.org~ new file mode 100644 index 00000000..e69de29b diff --git a/config/emacs/init-new.el b/config/emacs/init-new.el new file mode 100644 index 00000000..758aa6ab --- /dev/null +++ b/config/emacs/init-new.el @@ -0,0 +1,21 @@ +;; UI/UX +(setq inhibit-startup-message t) +;; make it look like neovim a little +(scroll-bar-mode -1) +(tool-bar-mode -1) +(tooltip-mode -1) +(set-fringe-mode 10) +(menu-bar-mode -1) +;; Line Numbers +(column-number-mode) +(global-display-line-numbers-mode t) +;; disable line numbers on some modes +(dolist (mode '(org-mode-hook + term-mode-hook + eshell-mode-hook)) + (add-hook mode (lambda () (display-line-numbers-mode 0)))) +;; Bell +(setq visible-bell t) + +;; Font +(set-face-attribute `default nil :font "JetBrains Mono" :height 125) diff --git a/config/emacs/init.el b/config/emacs/init.el index fdb06224..0d2d8bfc 100644 --- a/config/emacs/init.el +++ b/config/emacs/init.el @@ -259,11 +259,26 @@ ;; save org buffer before refile (advice-add 'org-refile :after 'org-save-all-org-buffers) + + ;; org mode src thing + (require 'org-tempo) + + (add-to-list 'org-structure-template-alist '("sh" . "src shell")) + (add-to-list 'org-structure-template-alist '("el" . "src emacs-lisp")) + (add-to-list 'org-structure-template-alist '("py" . "src python")) ;; extra keywords (setq org-todo-keywords '((sequence "TODO(t)" "NEXT(n)" "|" "DONE(d!)") (sequence "PLAN(p)" "READY(r)" "ACTIVE(a)" "HOLD(h)" "|" "COMPLETED(c)" "CANC(k@)"))) + + ;; oh my days + (org-babel-do-load-languages + 'org-babel-load-languages + '((emacs-lisp .t))) + + (setq org-confirm-babel-evaluate nil) + ;; custom commands for org-agenda (setq org-agenda-custom-commands '(("d" "Dashboard"