guys id ont know what im doing but im configuring emacs with org mode ??????
This commit is contained in:
parent
c1e46d070f
commit
488b784ca9
4 changed files with 81 additions and 0 deletions
45
config/emacs/emacs.org
Normal file
45
config/emacs/emacs.org
Normal file
|
@ -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
|
0
config/emacs/emacs.org~
Normal file
0
config/emacs/emacs.org~
Normal file
21
config/emacs/init-new.el
Normal file
21
config/emacs/init-new.el
Normal file
|
@ -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)
|
|
@ -259,11 +259,26 @@
|
||||||
|
|
||||||
;; save org buffer before refile
|
;; save org buffer before refile
|
||||||
(advice-add 'org-refile :after 'org-save-all-org-buffers)
|
(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
|
;; extra keywords
|
||||||
(setq org-todo-keywords
|
(setq org-todo-keywords
|
||||||
'((sequence "TODO(t)" "NEXT(n)" "|" "DONE(d!)")
|
'((sequence "TODO(t)" "NEXT(n)" "|" "DONE(d!)")
|
||||||
(sequence "PLAN(p)" "READY(r)" "ACTIVE(a)" "HOLD(h)" "|" "COMPLETED(c)" "CANC(k@)")))
|
(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
|
;; custom commands for org-agenda
|
||||||
(setq org-agenda-custom-commands
|
(setq org-agenda-custom-commands
|
||||||
'(("d" "Dashboard"
|
'(("d" "Dashboard"
|
||||||
|
|
Loading…
Reference in a new issue