Fix wonky indentation in src blocks, add parrot and nyan modes :D

This commit is contained in:
James Dixon 2025-05-26 21:42:26 -04:00
parent 1d49b4d18a
commit e9fc5d2d2d
2 changed files with 879 additions and 849 deletions

View File

@ -7,7 +7,6 @@
;;; My Emacs Config
;;;
;;; Code:
(setq user-full-name "James Dixon")
(setq user-mail-address "notjamesdixon@gmail.com")
@ -464,12 +463,14 @@
(global-set-key (kbd "C-c a") #'org-agenda)
(global-set-key (kbd "C-c c") #'org-capture)
(global-set-key (kbd "C-c l") #'org-store-link)
(setq org-agenda-files (list "~/Documents/notes/org/life.org"))
(setq org-html-htmlize-output-type 'css)
(setq org-clock-persist 'history)
(setq org-agenda-files (list "~/Documents/notes/org/life.org"))
(org-clock-persistence-insinuate)
(setq org-todo-keywords '((sequence "TODO(!)" "IN PROGRESS" "DONE")))
(setq org-todo-keywords '((sequence "TODO" "IN PROGRESS" "DONE")))
(setq org-treat-insert-todo-heading-as-state-change t)
(setq org-src-preserve-indentation nil)
(setq org-edit-src-content-indentation 0)
(setq org-log-done t))
;; Sticky headers at the top of the buffer (matching org outline)
@ -556,8 +557,9 @@
(use-package doom-themes
:straight t
:config)
;; (load-theme 'doom-badger t))
;; (load-theme 'doom-ir-black t))
(load-theme 'doom-badger t)
;; (load-theme 'doom-ir-black t)
;; Doom Modeline - much easier on the eyes
;; https://github.com/seagle0128/doom-modeline
@ -565,6 +567,13 @@
:straight t
:hook (after-init . doom-modeline-mode))
;; Run M-x nerd-icons-install-fonts to install the necessary fonts.
(use-package nerd-icons
:custom
(nerd-icons-font-family "Symbols Nerd Font Mono")
;; (nerd-icons-font-family "Martian Mono Nerd Font")
:straight )
;; Sticky headers for programming modes
;; https://github.com/alphapapa/topsy.el
(use-package topsy
@ -616,11 +625,16 @@
(goggles-define yank evil-paste-after) ; make pasting from evil mode highlighted
(setq-default goggles-pulse t))
;; NYAN x inf
;; NYAN cat in modeline
;; https://github.com/TeMPOraL/nyan-mode
(use-package nyan-mode
:straight t)
;; Party Parrot in modeline
;; https://github.com/dp12/parrot
(use-package parrot
:straight t)
;;; Mini-buffer improvements (fido, orderless, marginalia)
;; Let's try [icomplete / fido / ido] mode for a while.
;; (icomplete-vertical-mode)
@ -780,7 +794,9 @@
;; https://github.com/smihica/emmet-mode
(use-package emmet-mode
:straight t
:init)
:init
(add-hook 'sgml-mode-hook 'emmet-mode) ;; Auto-start on any markup modes
(add-hook 'css-mode-hook 'emmet-mode)) ;; enable Emmet's css abbreviation.
;; LSP Modes
(use-package eglot

View File

@ -1,11 +1,11 @@
#+TITLE: Emacs Literate Config
#+TITLE: Emacs "Literate Config" with Org
#+AUTHOR: James Dixon
* Emacs Config
Made with +evil+ love
** Prelude and Initial Comments
** Prelude, Initial Comments and User/Email
Initial comment prelude to appease the commnent gods.
@ -19,13 +19,6 @@ Initial comment prelude to appease the commnent gods.
;;; My Emacs Config
;;;
;;; Code:
#+end_src
** Setting User and Email
We set this for later use with git, email and other misc. packages.
#+begin_src emacs-lisp :tangle "init.el"
(setq user-full-name "James Dixon")
(setq user-mail-address "notjamesdixon@gmail.com")
#+end_src
@ -250,7 +243,6 @@ Cleaning up whitespace and checking balanced parens are something that should be
=Enhanced= functions for some of the defaults.
#+begin_src emacs-lisp :tangle "init.el"
;; https://stackoverflow.com/questions/6286579/emacs-shell-mode-how-to-send-region-to-shell/7053298#7053298
(defun shell-region (start end)
@ -583,12 +575,14 @@ Org mode. Cut my life into pizzas. This is my plastic fork!1 |dmb|
(global-set-key (kbd "C-c a") #'org-agenda)
(global-set-key (kbd "C-c c") #'org-capture)
(global-set-key (kbd "C-c l") #'org-store-link)
(setq org-agenda-files (list "~/Documents/notes/org/life.org"))
(setq org-html-htmlize-output-type 'css)
(setq org-clock-persist 'history)
(setq org-agenda-files (list "~/Documents/notes/org/life.org"))
(org-clock-persistence-insinuate)
(setq org-todo-keywords '((sequence "TODO(!)" "IN PROGRESS" "DONE")))
(setq org-todo-keywords '((sequence "TODO" "IN PROGRESS" "DONE")))
(setq org-treat-insert-todo-heading-as-state-change t)
(setq org-src-preserve-indentation nil)
(setq org-edit-src-content-indentation 0)
(setq org-log-done t))
;; Sticky headers at the top of the buffer (matching org outline)
@ -610,6 +604,7 @@ Org mode. Cut my life into pizzas. This is my plastic fork!1 |dmb|
**** Markdown Mode (markdown-mode)
- State "TODO" from [2025-05-26 Mon 21:37]
Markdown is not supported filetype with Emacs, must use package.
#+begin_src emacs-lisp :tangle "init.el"
@ -705,8 +700,9 @@ Change the look and feel of Emacs.
(use-package doom-themes
:straight t
:config)
;; (load-theme 'doom-badger t))
;; (load-theme 'doom-ir-black t))
(load-theme 'doom-badger t)
;; (load-theme 'doom-ir-black t)
;; Doom Modeline - much easier on the eyes
;; https://github.com/seagle0128/doom-modeline
@ -714,6 +710,13 @@ Change the look and feel of Emacs.
:straight t
:hook (after-init . doom-modeline-mode))
;; Run M-x nerd-icons-install-fonts to install the necessary fonts.
(use-package nerd-icons
:custom
(nerd-icons-font-family "Symbols Nerd Font Mono")
;; (nerd-icons-font-family "Martian Mono Nerd Font")
:straight )
;; Sticky headers for programming modes
;; https://github.com/alphapapa/topsy.el
(use-package topsy
@ -764,11 +767,20 @@ Change the look and feel of Emacs.
:config
(goggles-define yank evil-paste-after) ; make pasting from evil mode highlighted
(setq-default goggles-pulse t))
#+end_src
;; NYAN x inf
**** Just for fun (visual)
#+begin_src emacs-lisp :tangle "init.el"
;; NYAN cat in modeline
;; https://github.com/TeMPOraL/nyan-mode
(use-package nyan-mode
:straight t)
;; Party Parrot in modeline
;; https://github.com/dp12/parrot
(use-package parrot
:straight t)
#+end_src
*** Completion
@ -965,10 +977,12 @@ Abbreviations and Snippets simply allow for less typing and more output.
;; https://github.com/smihica/emmet-mode
(use-package emmet-mode
:straight t
:init)
:init
(add-hook 'sgml-mode-hook 'emmet-mode) ;; Auto-start on any markup modes
(add-hook 'css-mode-hook 'emmet-mode)) ;; enable Emmet's css abbreviation.
#+end_src
**** LSP
**** LSP w/ eglot
Add language server protocol using eglot. Installing LSP servers is a separate process.