Compare commits
17 Commits
3719d0cc7f
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ca981c61b8 | ||
|
|
a5a2d9c350 | ||
|
|
832f369ae3 | ||
|
|
5c31808a5b | ||
|
|
b8262f7e82 | ||
|
|
aecc20f5e7 | ||
|
|
eeb081e2d8 | ||
|
|
07ba76396b | ||
|
|
0c0e017cc3 | ||
|
|
dc216a2cc8 | ||
|
|
beeb91e047 | ||
|
|
3b8722bd90 | ||
|
|
70da73c091 | ||
|
|
a1d5f323df | ||
|
|
d4bcaf300f | ||
|
|
ace59e979b | ||
|
|
da46826753 |
@@ -1,18 +1,20 @@
|
|||||||
;; colors in eshell
|
;; colors in eshell
|
||||||
;; (add-hook 'eshell-mode-hook
|
|
||||||
;; (lambda ()
|
(add-hook 'eshell-mode-hook
|
||||||
;; (setenv "TERM" "xterm-256color")))
|
(lambda ()
|
||||||
;; (add-hook 'eshell-before-prompt-hook (lambda ()
|
(setenv "TERM" "xterm-256color")))
|
||||||
;; (setq xterm-color-preserve-properties t)))
|
(add-hook 'eshell-before-prompt-hook (lambda ()
|
||||||
;; (add-to-list 'eshell-preoutput-filter-functions 'xterm-color-filter)
|
(setq xterm-color-preserve-properties t)))
|
||||||
;; (setq eshell-output-filter-functions
|
|
||||||
;; (remove 'eshell-handle-ansi-color eshell-output-filter-functions))
|
(require 'esh-mode)
|
||||||
|
(add-to-list 'eshell-preoutput-filter-functions 'xterm-color-filter)
|
||||||
|
(setq eshell-output-filter-functions
|
||||||
|
(remove 'eshell-handle-ansi-color eshell-output-filter-functions))
|
||||||
|
|
||||||
;; Don't cycle through history with <up> and <down>
|
;; Don't cycle through history with <up> and <down>
|
||||||
;; Those keys were previously bound to:
|
;; Those keys were previously bound to:
|
||||||
;; eshell-previous-matching-input-from-input and
|
;; eshell-previous-matching-input-from-input and
|
||||||
;; eshell-next-matching-input-from-input, respectively
|
;; eshell-next-matching-input-from-input, respectively
|
||||||
|
|
||||||
(defun my-eshell-setup ()
|
(defun my-eshell-setup ()
|
||||||
(progn
|
(progn
|
||||||
(define-key eshell-hist-mode-map (kbd "<up>") nil)
|
(define-key eshell-hist-mode-map (kbd "<up>") nil)
|
||||||
|
|||||||
184
elisp/extras.el
184
elisp/extras.el
@@ -5,11 +5,20 @@
|
|||||||
;; Always use slant for italic, not underline
|
;; Always use slant for italic, not underline
|
||||||
'(italic ((t (:slant italic))))
|
'(italic ((t (:slant italic))))
|
||||||
|
|
||||||
|
;; Save point
|
||||||
|
(save-place-mode 1)
|
||||||
|
|
||||||
|
;; Set column width to 88 characters
|
||||||
|
(setq-default fill-column 88)
|
||||||
|
|
||||||
;;;; Load my packages
|
;;;; Load my packages
|
||||||
;; Default theme
|
;; Default theme
|
||||||
(use-package zenburn-theme
|
;; (use-package zenburn-theme
|
||||||
:config
|
;; :demand t
|
||||||
(load-theme 'zenburn t))
|
;; :config
|
||||||
|
;; (load-theme 'zenburn t))
|
||||||
|
|
||||||
|
(load-theme 'modus-operandi-tinted t)
|
||||||
|
|
||||||
;; Eshell
|
;; Eshell
|
||||||
;; (use-package eshell
|
;; (use-package eshell
|
||||||
@@ -22,10 +31,10 @@
|
|||||||
:config
|
:config
|
||||||
(load "~/.emacs.d/elisp/org-setup.el"))
|
(load "~/.emacs.d/elisp/org-setup.el"))
|
||||||
(use-package org-ref)
|
(use-package org-ref)
|
||||||
(use-package org-roam
|
;; (use-package org-roam
|
||||||
:disabled
|
;; :disabled
|
||||||
:config
|
;; :config
|
||||||
(load "~/.emacs.d/elisp/org-roam-setup.el"))
|
;; (load "~/.emacs.d/elisp/org-roam-setup.el"))
|
||||||
|
|
||||||
;; Writing
|
;; Writing
|
||||||
(use-package writeroom-mode)
|
(use-package writeroom-mode)
|
||||||
@@ -34,25 +43,36 @@
|
|||||||
;; configure the default one
|
;; configure the default one
|
||||||
(load "~/.emacs.d/elisp/modeline-setup.el")
|
(load "~/.emacs.d/elisp/modeline-setup.el")
|
||||||
;; then use doom-modeline
|
;; then use doom-modeline
|
||||||
|
;; (use-package doom-modeline
|
||||||
|
;; :config
|
||||||
|
;; (progn
|
||||||
|
;; (setq doom-modeline-buffer-encoding nil)
|
||||||
|
;; (setq doom-modeline-height 15)
|
||||||
|
;; (when (member "Fantasque Sans Mono" (font-family-list))
|
||||||
|
;; (set-face-attribute 'mode-line nil :font "Fantasque Sans Mono-14")
|
||||||
|
;; (set-face-attribute 'mode-line-inactive nil :font "Fantasque Sans Mono-13")))
|
||||||
|
;; :hook
|
||||||
|
;; (after-init . doom-modeline-mode))
|
||||||
|
|
||||||
|
;; (use-package doom-modeline
|
||||||
|
;; :ensure t
|
||||||
|
;; :init (doom-modeline-mode 1))
|
||||||
|
|
||||||
(use-package all-the-icons)
|
(use-package all-the-icons)
|
||||||
(use-package doom-modeline
|
|
||||||
:config
|
|
||||||
(progn
|
|
||||||
(setq doom-modeline-buffer-encoding nil)
|
|
||||||
(setq doom-modeline-height 15)
|
|
||||||
(when (member "Fantasque Sans Mono" (font-family-list))
|
|
||||||
(set-face-attribute 'mode-line nil :font "Fantasque Sans Mono-14")
|
|
||||||
(set-face-attribute 'mode-line-inactive nil :font "Fantasque Sans Mono-13")))
|
|
||||||
:hook
|
|
||||||
(after-init . doom-modeline-mode))
|
|
||||||
|
|
||||||
(use-package dashboard
|
(use-package dashboard
|
||||||
|
:demand t
|
||||||
:config
|
:config
|
||||||
(dashboard-setup-startup-hook))
|
(dashboard-setup-startup-hook))
|
||||||
|
|
||||||
;; Reading
|
;; Reading
|
||||||
(use-package nov
|
(use-package nov
|
||||||
:config
|
:config
|
||||||
|
(setq nov-text-width t)
|
||||||
|
(setq visual-fill-column-center-text t)
|
||||||
|
(add-hook 'nov-mode-hook 'visual-line-mode)
|
||||||
|
(add-hook 'nov-mode-hook 'visual-fill-column-mode)
|
||||||
|
(add-hook 'nov-mode-hook 'writeroom-mode)
|
||||||
(add-to-list 'auto-mode-alist '("\\.epub\\'" . nov-mode)))
|
(add-to-list 'auto-mode-alist '("\\.epub\\'" . nov-mode)))
|
||||||
|
|
||||||
(use-package pdf-tools
|
(use-package pdf-tools
|
||||||
@@ -61,24 +81,21 @@
|
|||||||
(pdf-tools-install)
|
(pdf-tools-install)
|
||||||
(setq pdf-view-midnight-colors '("#DCDCCC" . "#3F3F3F"))))
|
(setq pdf-view-midnight-colors '("#DCDCCC" . "#3F3F3F"))))
|
||||||
|
|
||||||
(use-package saveplace-pdf-view
|
(use-package saveplace-pdf-view)
|
||||||
:straight t
|
|
||||||
:config
|
|
||||||
(save-place-mode 1))
|
|
||||||
|
|
||||||
;; Mail reader
|
;; ;; Mail reader
|
||||||
(use-package mu4e
|
;; (use-package mu4e
|
||||||
:disabled
|
;; :disabled
|
||||||
:config
|
;; :config
|
||||||
(load "~/.emacs.d/elisp/mu4e-setup.el"))
|
;; (load "~/.emacs.d/elisp/mu4e-setup.el"))
|
||||||
;; mail notification in modeline
|
;; ;; mail notification in modeline
|
||||||
(use-package mu4e-alert
|
;; (use-package mu4e-alert
|
||||||
:disabled
|
;; :disabled
|
||||||
:after mu4e
|
;; :after mu4e
|
||||||
:init
|
;; :init
|
||||||
(setq mu4e-alert-interesting-mail-query "flag:unread maildir:/posteo/INBOX")
|
;; (setq mu4e-alert-interesting-mail-query "flag:unread maildir:/posteo/INBOX")
|
||||||
:hook
|
;; :hook
|
||||||
(after-init . mu4e-alert-enable-mode-line-display))
|
;; (after-init . mu4e-alert-enable-mode-line-display))
|
||||||
|
|
||||||
;; Matrix
|
;; Matrix
|
||||||
(use-package ement)
|
(use-package ement)
|
||||||
@@ -89,22 +106,18 @@
|
|||||||
;; Read feeds
|
;; Read feeds
|
||||||
(use-package elfeed)
|
(use-package elfeed)
|
||||||
|
|
||||||
;; Write gemtext
|
|
||||||
;(use-package gemini-mode
|
|
||||||
; :straight t)
|
|
||||||
|
|
||||||
;; Interface with guix package manager
|
|
||||||
(use-package guix)
|
|
||||||
|
|
||||||
;; Programming environment
|
;; Programming environment
|
||||||
;; We need colors in eshell
|
;; We need colors in eshell
|
||||||
(use-package xterm-color)
|
(use-package xterm-color)
|
||||||
|
|
||||||
;; git
|
;; git
|
||||||
(use-package magit)
|
(use-package magit
|
||||||
|
:demand t)
|
||||||
|
|
||||||
;; code completion
|
;; ;; code completion
|
||||||
(use-package company
|
(use-package company
|
||||||
|
:demand t
|
||||||
:config
|
:config
|
||||||
(add-hook 'after-init-hook 'global-company-mode))
|
(add-hook 'after-init-hook 'global-company-mode))
|
||||||
|
|
||||||
@@ -115,67 +128,24 @@
|
|||||||
(setq dash-docs-browser-func 'eww)
|
(setq dash-docs-browser-func 'eww)
|
||||||
(setq dash-docs-enable-debugging nil)))
|
(setq dash-docs-enable-debugging nil)))
|
||||||
|
|
||||||
|
(use-package tomlparse)
|
||||||
|
|
||||||
|
;; TODO I'm only using demand so <f3> is set from the start
|
||||||
(use-package treemacs
|
(use-package treemacs
|
||||||
|
:demand t
|
||||||
:config
|
:config
|
||||||
(global-set-key (kbd "<f3>") 'treemacs))
|
(global-set-key (kbd "<f3>") 'treemacs))
|
||||||
|
|
||||||
;; language server
|
|
||||||
(use-package lsp-mode)
|
|
||||||
(use-package lsp-ui)
|
|
||||||
(use-package lsp-treemacs)
|
|
||||||
(use-package lsp-ivy)
|
|
||||||
(use-package company-lsp)
|
|
||||||
(use-package yasnippet
|
|
||||||
:config
|
|
||||||
(yas-global-mode 1))
|
|
||||||
(use-package dap-mode)
|
|
||||||
|
|
||||||
;; R
|
|
||||||
;(use-package ess
|
|
||||||
;:config
|
|
||||||
;(load "~/.emacs.d/elisp/ess-setup.el")
|
|
||||||
; )
|
|
||||||
|
|
||||||
;; Javascript and React
|
;; Javascript and React
|
||||||
(use-package rjsx-mode
|
(use-package rjsx-mode
|
||||||
:config
|
:config
|
||||||
(add-to-list 'auto-mode-alist '("\\.js\\'" . rjsx-mode)))
|
(add-to-list 'auto-mode-alist '("\\.js\\'" . rjsx-mode)))
|
||||||
|
|
||||||
;; Typescript
|
;; Common Lisp
|
||||||
(use-package tide
|
(use-package slime
|
||||||
:disabled
|
:disabled
|
||||||
:config
|
:config
|
||||||
(load "~/.emacs.d/elisp/typescript.el"))
|
(load "~/.emacs.d/elisp/slime-setup.el"))
|
||||||
|
|
||||||
(use-package typescript-mode
|
|
||||||
:ensure t
|
|
||||||
:init
|
|
||||||
(define-derived-mode typescript-tsx-mode typescript-mode "tsx")
|
|
||||||
:config
|
|
||||||
(add-hook 'typescript-mode #'subword-mode)
|
|
||||||
(add-to-list 'auto-mode-alist '("\\.tsx?\\'" . typescript-tsx-mode)))
|
|
||||||
|
|
||||||
(use-package tree-sitter
|
|
||||||
:straight t
|
|
||||||
:hook ((typescript-mode . tree-sitter-hl-mode)
|
|
||||||
(typescript-tsx-mode . tree-sitter-hl-mode)))
|
|
||||||
|
|
||||||
(use-package tree-sitter-langs
|
|
||||||
:straight t
|
|
||||||
:after tree-sitter
|
|
||||||
:config
|
|
||||||
(tree-sitter-require 'tsx)
|
|
||||||
(add-to-list 'tree-sitter-major-mode-language-alist '(typescript-tsx-mode . tsx)))
|
|
||||||
|
|
||||||
;; Geiser
|
|
||||||
(use-package geiser)
|
|
||||||
(use-package geiser-guile)
|
|
||||||
|
|
||||||
;; Common Lisp
|
|
||||||
;; (use-package slime
|
|
||||||
;; :disabled
|
|
||||||
;; :config
|
|
||||||
;; (load "~/.emacs.d/elisp/slime-setup.el"))
|
|
||||||
|
|
||||||
(use-package sly)
|
(use-package sly)
|
||||||
|
|
||||||
@@ -199,21 +169,43 @@
|
|||||||
(setenv "WORKON_HOME" "~/.cache/pypoetry/virtualenvs"))
|
(setenv "WORKON_HOME" "~/.cache/pypoetry/virtualenvs"))
|
||||||
|
|
||||||
(use-package python-black
|
(use-package python-black
|
||||||
:straight t
|
|
||||||
;; :demand t
|
|
||||||
:after python
|
:after python
|
||||||
:hook (python-mode . python-black-on-save-mode-enable-dwim))
|
:hook (python-mode . python-black-on-save-mode-enable-dwim))
|
||||||
|
|
||||||
|
(use-package pydoc)
|
||||||
|
|
||||||
|
(use-package pet
|
||||||
|
:config
|
||||||
|
(add-hook 'python-base-mode-hook 'pet-mode -10))
|
||||||
|
|
||||||
;; Ivy related stuff
|
;; Ivy related stuff
|
||||||
(use-package ivy)
|
(use-package ivy)
|
||||||
(use-package ivy-bibtex
|
(use-package ivy-bibtex)
|
||||||
:straight t)
|
|
||||||
(use-package counsel)
|
(use-package counsel)
|
||||||
(use-package swiper)
|
(use-package swiper)
|
||||||
(use-package counsel-dash
|
(use-package counsel-dash
|
||||||
:after (counsel))
|
:after (counsel))
|
||||||
(load "~/.emacs.d/elisp/ivy-setup.el")
|
(load "~/.emacs.d/elisp/ivy-setup.el")
|
||||||
|
|
||||||
|
;; View logs
|
||||||
|
(use-package log4j-mode)
|
||||||
|
|
||||||
|
(use-package eglot
|
||||||
|
:straight (:type built-in)
|
||||||
|
:ensure t
|
||||||
|
:defer t
|
||||||
|
:hook ((python-base-mode . eglot-ensure))
|
||||||
|
;:config
|
||||||
|
;(setq-default eglot-workspace-configuration
|
||||||
|
; '((pylsp
|
||||||
|
; (plugins
|
||||||
|
; (pycodestyle (enabled . nil))
|
||||||
|
; (pyflakes (enabled . nil))
|
||||||
|
; (flake8 (enabled . t))
|
||||||
|
; (black (enabled . t))
|
||||||
|
; ))))
|
||||||
|
)
|
||||||
|
|
||||||
;; TRAMP
|
;; TRAMP
|
||||||
(load "~/.emacs.d/elisp/tramp-setup.el")
|
(load "~/.emacs.d/elisp/tramp-setup.el")
|
||||||
(load "~/.emacs.d/elisp/outline-keymap.el")
|
(load "~/.emacs.d/elisp/outline-keymap.el")
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
;; magit
|
;; magit
|
||||||
(global-set-key (kbd "C-x g") 'magit-status)
|
(global-set-key (kbd "C-x g") 'magit-status)
|
||||||
|
;; eshell
|
||||||
|
(global-set-key (kbd "<f4>") 'eshell)
|
||||||
|
(global-set-key (kbd "H-e") 'eshell)
|
||||||
|
;; subsitute list-buffer for ibuffer
|
||||||
|
(global-set-key (kbd "C-x C-b") 'ibuffer)
|
||||||
|
|
||||||
;; number pad keys
|
;; number pad keys
|
||||||
(global-set-key (kbd "<kp-decimal>") 'other-window)
|
(global-set-key (kbd "<kp-decimal>") 'other-window)
|
||||||
|
|||||||
@@ -58,7 +58,8 @@
|
|||||||
(haskell . t)
|
(haskell . t)
|
||||||
(scheme . t)
|
(scheme . t)
|
||||||
(shell . t)
|
(shell . t)
|
||||||
(python . t)))
|
(python . t)
|
||||||
|
(plantuml . t)))
|
||||||
|
|
||||||
;; default apps to open files with org-mode
|
;; default apps to open files with org-mode
|
||||||
(setq org-file-apps
|
(setq org-file-apps
|
||||||
|
|||||||
8
init.el
8
init.el
@@ -18,7 +18,9 @@
|
|||||||
;;(straight-use-package 'use-package)
|
;;(straight-use-package 'use-package)
|
||||||
(eval-when-compile
|
(eval-when-compile
|
||||||
(require 'use-package))
|
(require 'use-package))
|
||||||
;(setq straight-use-package-by-default t)
|
(setq straight-use-package-by-default t)
|
||||||
|
|
||||||
|
;;(setq use-package-always-defer t)
|
||||||
|
|
||||||
;; Minimal package.el use so we can explore melpa packages
|
;; Minimal package.el use so we can explore melpa packages
|
||||||
(require 'package)
|
(require 'package)
|
||||||
@@ -41,11 +43,11 @@
|
|||||||
'(("http://lambda-the-ultimate.org/node/feed" lambda)
|
'(("http://lambda-the-ultimate.org/node/feed" lambda)
|
||||||
("https://acoup.blog/feed" acoup history)
|
("https://acoup.blog/feed" acoup history)
|
||||||
("https://talesoftimesforgotten.com/feed" history)
|
("https://talesoftimesforgotten.com/feed" history)
|
||||||
|
("https://pastsimperfect.substack.com/feed" history)
|
||||||
("https://guix.gnu.org/feeds/blog.atom" guix)
|
("https://guix.gnu.org/feeds/blog.atom" guix)
|
||||||
("https://mmhaskell.com/blog?format=rss" haskell)
|
("https://mmhaskell.com/blog?format=rss" haskell)
|
||||||
("https://www.inspiredpython.com/feed" python)
|
("https://www.inspiredpython.com/feed" python)
|
||||||
("https://sachachua.com/blog/category/emacs-news/feed" emacs)
|
("https://sachachua.com/blog/category/emacs-news/feed" emacs)
|
||||||
("https://dthompson.us/feed.xml" guile)
|
("https://dthompson.us/feed.xml" guile)
|
||||||
("https://wingolog.org/feed/atom" guile scheme)
|
("https://wingolog.org/feed/atom" guile scheme)))
|
||||||
("https://jazzfuel.com/feed/" jazz music)))
|
|
||||||
(put 'upcase-region 'disabled nil)
|
(put 'upcase-region 'disabled nil)
|
||||||
|
|||||||
Reference in New Issue
Block a user