Lots of changes
This commit is contained in:
parent
d94b80ea9d
commit
0b981a6ee6
126
config.org
126
config.org
@ -7,6 +7,11 @@ Like notifications
|
|||||||
:body "Electronic Macros loading...")
|
:body "Electronic Macros loading...")
|
||||||
(message "Emacs initializing...")
|
(message "Emacs initializing...")
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
and sclang, if avaliable
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(add-to-list 'load-path "/usr/local/bin/sclang")
|
||||||
|
(require 'sclang)
|
||||||
|
#+END_SRC
|
||||||
** Helper Functions
|
** Helper Functions
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(defun wiz-kill-all-buffers ()
|
(defun wiz-kill-all-buffers ()
|
||||||
@ -86,9 +91,9 @@ When you open a code block, close that block.
|
|||||||
** Fonts
|
** Fonts
|
||||||
Set the font to something cool
|
Set the font to something cool
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
;; (set-default-font "terminus-12")
|
;; (set-default-font "Go Mono-11")
|
||||||
(add-to-list 'default-frame-alist
|
(add-to-list 'default-frame-alist
|
||||||
'(font . "IBM Plex Mono-11")
|
'(font . "Go Mono-11")
|
||||||
'(font . "Noto Sans Mono CJK JP-11"))
|
'(font . "Noto Sans Mono CJK JP-11"))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
@ -142,6 +147,7 @@ Enable lines when editing files
|
|||||||
|
|
||||||
(add-hook 'text-mode-hook 'display-line-numbers-mode)
|
(add-hook 'text-mode-hook 'display-line-numbers-mode)
|
||||||
(add-hook 'prog-mode-hook 'display-line-numbers-mode)
|
(add-hook 'prog-mode-hook 'display-line-numbers-mode)
|
||||||
|
(add-hook 'sclang-mode-hook 'display-line-numbers-mode)
|
||||||
(add-hook 'conf-mode-hook 'display-line-numbers-mode)
|
(add-hook 'conf-mode-hook 'display-line-numbers-mode)
|
||||||
|
|
||||||
(setq display-line-numbers-grow-only t)
|
(setq display-line-numbers-grow-only t)
|
||||||
@ -256,9 +262,9 @@ Set the org mode directory and define some capture templates
|
|||||||
(setq org-default-notes-file "notes.org")
|
(setq org-default-notes-file "notes.org")
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
** set browser
|
** set browser
|
||||||
Default browser should be qutebrowser
|
Default browser should be firefox
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(setq browse-url-generic-program "qutebrowser"
|
(setq browse-url-generic-program "firefox"
|
||||||
browse-url-browser-program 'browse-url-generic
|
browse-url-browser-program 'browse-url-generic
|
||||||
browse-url-default-browser 'browse-url-generic
|
browse-url-default-browser 'browse-url-generic
|
||||||
browse-url-browser-function 'browse-url-generic
|
browse-url-browser-function 'browse-url-generic
|
||||||
@ -337,12 +343,12 @@ Note: this requires base16-themes
|
|||||||
(defun theme-callback (event)
|
(defun theme-callback (event)
|
||||||
(wiz-apply-theme))
|
(wiz-apply-theme))
|
||||||
|
|
||||||
(require 'filenotify)
|
;; (require 'filenotify)
|
||||||
(file-notify-add-watch
|
;; (file-notify-add-watch
|
||||||
wiz-theme-file '(change) 'theme-callback)
|
;; wiz-theme-file '(change) 'theme-callback)
|
||||||
|
|
||||||
;; Set the theme on startup
|
;; Set the theme on startup
|
||||||
(wiz-apply-theme)
|
;; (wiz-apply-theme)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
*** TODO Move this to the base16 config
|
*** TODO Move this to the base16 config
|
||||||
** tramp
|
** tramp
|
||||||
@ -354,6 +360,10 @@ Enable a spellchecker
|
|||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(add-hook 'org-mode-hook 'flyspell-mode)
|
(add-hook 'org-mode-hook 'flyspell-mode)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
** calc
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
;; (add-to-list 'evil-emacs-state-modes 'calc-mode)
|
||||||
|
#+END_SRC
|
||||||
* Package Repo Config
|
* Package Repo Config
|
||||||
** Repo Location
|
** Repo Location
|
||||||
Let's start by configuring the repositories
|
Let's start by configuring the repositories
|
||||||
@ -485,7 +495,7 @@ hit =e= to do that.
|
|||||||
|
|
||||||
***** l - misc
|
***** l - misc
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(general-create-definer wiz-misc-def
|
(wiz-misc-def
|
||||||
:keymaps 'override
|
:keymaps 'override
|
||||||
:states 'normal
|
:states 'normal
|
||||||
:prefix "SPC l")
|
:prefix "SPC l")
|
||||||
@ -493,10 +503,10 @@ hit =e= to do that.
|
|||||||
|
|
||||||
***** w - window
|
***** w - window
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(general-create-definer wiz-window-def
|
;; (wiz-window-def
|
||||||
:keymaps 'override
|
;; :keymaps 'override
|
||||||
:states 'normal
|
;; :states 'normal
|
||||||
:prefix "SPC w")
|
;; :prefix "SPC w")
|
||||||
|
|
||||||
(wiz-window-def
|
(wiz-window-def
|
||||||
"o" 'delete-other-windows)
|
"o" 'delete-other-windows)
|
||||||
@ -520,6 +530,17 @@ hit =e= to do that.
|
|||||||
"d" 'dired)
|
"d" 'dired)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
***** sclang-mode
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
;; (defun wiz-sclang-eval-region () "do nothing for now")
|
||||||
|
(general-define-key
|
||||||
|
:keymaps 'sclang-mode-map
|
||||||
|
"C-c C-d" 'sclang-eval-defun
|
||||||
|
"C-c C-c" 'sclang-eval-region-or-line)
|
||||||
|
(wiz-major-def
|
||||||
|
:keymaps 'sclang-mode-map
|
||||||
|
"SPC" 'sclang-eval-region-or-line)
|
||||||
|
#+END_SRC
|
||||||
*** Vim bindings
|
*** Vim bindings
|
||||||
Let's get some vim up in here.
|
Let's get some vim up in here.
|
||||||
**** evil
|
**** evil
|
||||||
@ -613,13 +634,13 @@ Evil is pretty much the entirety of Vim in Emacs.
|
|||||||
:general
|
:general
|
||||||
;; I'm still not too satisfied with these but whateves
|
;; I'm still not too satisfied with these but whateves
|
||||||
(:keymaps '(insert normal visual)
|
(:keymaps '(insert normal visual)
|
||||||
"M-l" 'sp-forward-slurp-sexp
|
"M-." 'sp-forward-slurp-sexp
|
||||||
"M-n" 'sp-backward-slurp-sexp
|
"M-l" 'sp-backward-slurp-sexp
|
||||||
"M-." 'sp-forward-barf-sexp
|
"M-n" 'sp-forward-barf-sexp
|
||||||
"M-l" 'sp-backward-barf-sexp)
|
"M-h" 'sp-backward-barf-sexp)
|
||||||
:init
|
:init
|
||||||
;; Start this shiznit when emacs starts yea boy it's good B)
|
;; Start this shiznit when emacs starts yea boy it's good B)
|
||||||
(smartparens-global-strict-mode)
|
;; (smartparens-global-strict-mode)
|
||||||
:config
|
:config
|
||||||
(require 'smartparens-config))
|
(require 'smartparens-config))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
@ -722,7 +743,7 @@ pinged.
|
|||||||
# :init
|
# :init
|
||||||
# (beacon-mode 1))
|
# (beacon-mode 1))
|
||||||
# #+END_SRC
|
# #+END_SRC
|
||||||
*** ranger file manager
|
*** ranger file manager (DISABLED)
|
||||||
Let's not use this for now
|
Let's not use this for now
|
||||||
# #+BEGIN_SRC emacs-lisp
|
# #+BEGIN_SRC emacs-lisp
|
||||||
# (use-package ranger
|
# (use-package ranger
|
||||||
@ -738,6 +759,12 @@ Let's not use this for now
|
|||||||
# ranger-literal-preview nil
|
# ranger-literal-preview nil
|
||||||
# ranger-override-dired-mode 'ranger))
|
# ranger-override-dired-mode 'ranger))
|
||||||
# #+END_SRC
|
# #+END_SRC
|
||||||
|
*** w3m
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package w3m
|
||||||
|
:ensure t)
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
** Autocompletion
|
** Autocompletion
|
||||||
*** Fuzzy matching
|
*** Fuzzy matching
|
||||||
Ivy, swiper, and counsel all provide fuzzy-matching on different emacs
|
Ivy, swiper, and counsel all provide fuzzy-matching on different emacs
|
||||||
@ -761,12 +788,11 @@ operations.
|
|||||||
:ensure t
|
:ensure t
|
||||||
:demand t
|
:demand t
|
||||||
:general
|
:general
|
||||||
(:keymaps 'override
|
(:keymaps 'normal
|
||||||
:states 'normal
|
|
||||||
"/" 'swiper
|
"/" 'swiper
|
||||||
;; For some reason, searching with swiper causes these to be reversed.
|
;; For some reason, searching with swiper causes these to be reversed.
|
||||||
"N" 'evil-search-previous
|
"n" 'evil-search-previous
|
||||||
"n" 'evil-search-next))
|
"N" 'evil-search-next))
|
||||||
|
|
||||||
(use-package ivy-rich
|
(use-package ivy-rich
|
||||||
:after ivy
|
:after ivy
|
||||||
@ -800,7 +826,6 @@ operations.
|
|||||||
:ensure t)
|
:ensure t)
|
||||||
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
*** Code completion
|
*** Code completion
|
||||||
[[https://company-mode.github.io/][company]] comlpetes anything in the buffer
|
[[https://company-mode.github.io/][company]] comlpetes anything in the buffer
|
||||||
|
|
||||||
@ -862,8 +887,7 @@ use =ga= and =gA= to hint letters n stuff.
|
|||||||
(use-package avy
|
(use-package avy
|
||||||
:ensure t
|
:ensure t
|
||||||
:general
|
:general
|
||||||
(:keymaps 'override
|
(:states 'normal
|
||||||
:states 'normal
|
|
||||||
"ga" 'avy-goto-char-in-line
|
"ga" 'avy-goto-char-in-line
|
||||||
"gA" 'avy-goto-char))
|
"gA" 'avy-goto-char))
|
||||||
|
|
||||||
@ -996,7 +1020,7 @@ Irony handles enhanced C / C++ operations powered by clang
|
|||||||
(add-to-list 'company-backends 'company-irony))
|
(add-to-list 'company-backends 'company-irony))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
*** Python
|
*** Python
|
||||||
**** jedi for autocompletion sources n stuff
|
**** TODO jedi for autocompletion sources n stuff
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package company-jedi
|
(use-package company-jedi
|
||||||
:ensure t
|
:ensure t
|
||||||
@ -1103,12 +1127,26 @@ Show completions for shell mode buffers
|
|||||||
(use-package sclang-snippets
|
(use-package sclang-snippets
|
||||||
:ensure t)
|
:ensure t)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
*** Arch Linux PKGBUILD
|
*** OS DSL
|
||||||
|
**** Arch Linux PKGBUILD
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package pkgbuild-mode
|
(use-package pkgbuild-mode
|
||||||
:ensure t
|
:ensure t)
|
||||||
:defer t)
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
**** Nix
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package nix-mode
|
||||||
|
:ensure t)
|
||||||
|
#+END_SRC
|
||||||
|
**** Puppet
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package puppet-mode
|
||||||
|
:pin melpa
|
||||||
|
:ensure t)
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
#+RESULTS:
|
||||||
|
|
||||||
** IRC
|
** IRC
|
||||||
Internet relay chat. It's where hackers go to communicate. Think of it
|
Internet relay chat. It's where hackers go to communicate. Think of it
|
||||||
like two boats in a shipping channel.
|
like two boats in a shipping channel.
|
||||||
@ -1237,14 +1275,14 @@ like two boats in a shipping channel.
|
|||||||
(erc-update-modules))
|
(erc-update-modules))
|
||||||
|
|
||||||
;; Display images as links in a channel
|
;; Display images as links in a channel
|
||||||
(use-package erc-image
|
;; (use-package erc-image
|
||||||
:after erc
|
;; :after erc
|
||||||
:ensure t
|
;; :ensure t
|
||||||
:defer t
|
;; :defer t
|
||||||
:init
|
;; :init
|
||||||
(add-to-list 'erc-modules 'image)
|
;; (add-to-list 'erc-modules 'image)
|
||||||
:config
|
;; :config
|
||||||
(erc-update-modules))
|
;; (erc-update-modules))
|
||||||
|
|
||||||
;; (use-package ercn
|
;; (use-package ercn
|
||||||
;; :pin melpa
|
;; :pin melpa
|
||||||
@ -1269,6 +1307,11 @@ like two boats in a shipping channel.
|
|||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package ledger-mode
|
(use-package ledger-mode
|
||||||
:ensure t
|
:ensure t
|
||||||
|
:init
|
||||||
|
(setq ledger-clear-whole-transactions 1)
|
||||||
|
:config
|
||||||
|
(add-to-list 'evil-emacs-state-modes 'ledger-report-mode)
|
||||||
|
;; remove evil mode from ledger reports
|
||||||
:mode ("\\.dat\\'"
|
:mode ("\\.dat\\'"
|
||||||
"\\.ledger\\'")
|
"\\.ledger\\'")
|
||||||
;; :general
|
;; :general
|
||||||
@ -1323,6 +1366,13 @@ Enables usage of docker from within emacs, and supports dockerfiles
|
|||||||
:ensure t)
|
:ensure t)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
** Themes
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package base16
|
||||||
|
:ensure t
|
||||||
|
:init
|
||||||
|
(load-theme 'base16-black-metal-mayhem))
|
||||||
|
#+END_SRC
|
||||||
* Final Touches
|
* Final Touches
|
||||||
Display a [[https://xkcd.com/37/][sick ass-message]] on the desktop to verify that dbus is good
|
Display a [[https://xkcd.com/37/][sick ass-message]] on the desktop to verify that dbus is good
|
||||||
and all is well in the wold
|
and all is well in the wold
|
||||||
|
Loading…
Reference in New Issue
Block a user