2020-07-26 14:36:43 +02:00
|
|
|
;; PACKAGE
|
|
|
|
(require 'package)
|
2020-10-07 14:32:54 +02:00
|
|
|
|
2021-04-29 22:30:49 +02:00
|
|
|
(setq package-archives '(("melpa" . "https://melpa.org/packages/")
|
|
|
|
("org" . "https://orgmode.org/elpa/")
|
|
|
|
("elpa" . "https://elpa.gnu.org/packages/")))
|
2021-04-29 22:18:25 +02:00
|
|
|
|
2020-07-26 14:36:43 +02:00
|
|
|
(package-initialize)
|
2021-04-29 22:18:25 +02:00
|
|
|
(unless package-archive-contents
|
|
|
|
(package-refresh-contents))
|
|
|
|
|
|
|
|
(unless (package-installed-p 'use-package)
|
|
|
|
(package-install 'use-package))
|
2020-07-26 14:36:43 +02:00
|
|
|
|
2020-09-29 16:32:31 +02:00
|
|
|
;; USE-PACKAGE
|
2020-10-07 14:32:54 +02:00
|
|
|
(require 'use-package)
|
2020-09-29 16:32:31 +02:00
|
|
|
(setq use-package-always-ensure t)
|
|
|
|
|
2021-06-03 15:07:37 +02:00
|
|
|
(use-package company
|
|
|
|
:init
|
|
|
|
(global-company-mode))
|
2020-07-26 14:36:43 +02:00
|
|
|
|
2021-05-28 16:11:25 +02:00
|
|
|
(use-package counsel
|
|
|
|
:bind (("C-M-j" . 'counsel-switch-buffer)
|
|
|
|
:map minibuffer-local-map
|
|
|
|
("C-r" . 'counsel-minibuffer-history))
|
|
|
|
:custom
|
|
|
|
(counsel-linux-app-format-function #'counsel-linux-app-format-function-name-only)
|
|
|
|
:config
|
|
|
|
(counsel-mode 1))
|
|
|
|
|
2021-05-28 18:30:49 +02:00
|
|
|
(use-package magit)
|
|
|
|
|
2021-05-28 16:11:25 +02:00
|
|
|
(use-package all-the-icons
|
|
|
|
:if (display-graphic-p)
|
|
|
|
:commands all-the-icons-install-fonts
|
|
|
|
:init
|
|
|
|
(unless (find-font (font-spec :name "all-the-icons"))
|
|
|
|
(all-the-icons-install-fonts t)))
|
|
|
|
|
|
|
|
(use-package all-the-icons-dired
|
|
|
|
:if (display-graphic-p)
|
|
|
|
:hook (dired-mode . all-the-icons-dired-mode))
|
|
|
|
|
2020-07-26 14:36:43 +02:00
|
|
|
(use-package ivy
|
2020-09-29 16:44:20 +02:00
|
|
|
:bind (("C-s" . swiper))
|
2020-07-26 14:36:43 +02:00
|
|
|
:init
|
2021-05-10 20:05:37 +02:00
|
|
|
(ivy-mode 1))
|
|
|
|
|
2021-01-01 11:37:51 +01:00
|
|
|
(use-package olivetti
|
2021-05-30 18:10:55 +02:00
|
|
|
:custom (olivetti-body-width 82))
|
2021-01-01 11:37:51 +01:00
|
|
|
|
2021-06-05 16:55:11 +02:00
|
|
|
(use-package shrface
|
|
|
|
:config
|
|
|
|
(shrface-basic)
|
|
|
|
(shrface-trial)
|
|
|
|
(shrface-default-keybindings)
|
|
|
|
(setq shrface-href-versatile t
|
|
|
|
shrface-toggle-bullets t
|
|
|
|
shr-width nil))
|
|
|
|
|
|
|
|
(use-package eww
|
|
|
|
:init
|
|
|
|
(add-hook 'eww-after-render-hook #'shrface-mode)
|
|
|
|
:config
|
|
|
|
(require 'shrface)
|
|
|
|
(setq shr-use-colors nil
|
|
|
|
shr-use-fonts nil
|
|
|
|
shr-cookie-policy nil
|
|
|
|
browse-url-browser-function (quote eww-browse-url)))
|
|
|
|
|
2020-07-26 14:36:43 +02:00
|
|
|
(use-package nov
|
2021-06-05 16:55:11 +02:00
|
|
|
:hook (nov-mode . olivetti-mode)
|
|
|
|
:config
|
|
|
|
(setq nov-text-width nil
|
|
|
|
nov-variable-pitch nil))
|
2020-07-26 14:36:43 +02:00
|
|
|
|
|
|
|
(use-package projectile
|
|
|
|
:init
|
2020-11-25 21:26:37 +01:00
|
|
|
(projectile-mode +1)
|
|
|
|
:config
|
|
|
|
(setq projectile-completion-system (quote ivy)))
|
2020-07-26 14:36:43 +02:00
|
|
|
|
|
|
|
(define-key projectile-mode-map (kbd "s-p") 'projectile-command-map)
|
|
|
|
(define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map)
|
|
|
|
|
2021-06-03 13:48:19 +02:00
|
|
|
;; (use-package elpy
|
|
|
|
;; :config (setq elpy-modules
|
|
|
|
;; '(elpy-module-autodoc
|
|
|
|
;; elpy-module-company
|
|
|
|
;; elpy-module-eldoc
|
|
|
|
;; elpy-module-pyvenv
|
|
|
|
;; elpy-module-yasnippet)
|
|
|
|
;; elpy-test-pytest-runner-command '("pytest")))
|
2021-01-01 11:37:51 +01:00
|
|
|
|
2021-06-05 16:57:38 +02:00
|
|
|
;; (use-package pyvenv
|
|
|
|
;; :init (pyvenv-mode 1))
|
2020-07-26 14:36:43 +02:00
|
|
|
|
2021-03-18 20:52:11 +01:00
|
|
|
(use-package typescript-mode)
|
|
|
|
|
2021-04-21 08:26:44 +02:00
|
|
|
(use-package go-mode)
|
|
|
|
|
2020-07-26 14:36:43 +02:00
|
|
|
(use-package eglot
|
2021-06-07 17:46:26 +02:00
|
|
|
:hook ((c-mode . eglot-ensure)
|
2021-03-18 20:52:11 +01:00
|
|
|
(js-mode . eglot-ensure)
|
2021-04-08 18:25:26 +02:00
|
|
|
(typescript-mode . eglot-ensure)
|
2021-04-22 16:06:12 +02:00
|
|
|
(rust-mode . eglot-ensure)
|
2021-04-21 08:26:44 +02:00
|
|
|
(go-mode . eglot-ensure)))
|
2021-04-22 16:06:12 +02:00
|
|
|
|
|
|
|
(use-package go-mode
|
2021-04-25 14:31:05 +02:00
|
|
|
:init
|
|
|
|
(add-hook 'before-save-hook #'gofmt-before-save))
|
2021-04-22 16:06:12 +02:00
|
|
|
|
|
|
|
(use-package ob-go)
|
2021-04-26 19:06:35 +02:00
|
|
|
(use-package ob-http)
|
|
|
|
(use-package ob-rust)
|
|
|
|
(use-package ob-typescript)
|
2020-07-26 14:36:43 +02:00
|
|
|
|
|
|
|
(use-package web-mode
|
2021-05-31 17:51:31 +02:00
|
|
|
:hook html-mode
|
2020-07-26 14:36:43 +02:00
|
|
|
:mode "\\.html?\\'"
|
|
|
|
:config
|
|
|
|
(setq web-mode-markup-indent-offset 2
|
|
|
|
web-mode-css-indent-offset 2
|
|
|
|
web-mode-code-indent-offset 2
|
|
|
|
web-mode-enable-auto-pairing nil
|
|
|
|
web-mode-enable-auto-closing t
|
|
|
|
web-mode-enable-current-element-highlight t
|
2021-05-28 18:30:49 +02:00
|
|
|
web-mode-enable-current-column-highlight t))
|
2020-07-26 14:36:43 +02:00
|
|
|
|
|
|
|
(use-package slime
|
2021-05-29 09:24:31 +02:00
|
|
|
:config
|
2021-06-03 15:07:37 +02:00
|
|
|
(setq slime-autodoc-use-multiline-p 1
|
|
|
|
inferior-lisp-program (executable-find "sbcl"))
|
|
|
|
(slime-setup '(slime-autodoc
|
|
|
|
slime-fancy
|
|
|
|
slime-asdf
|
|
|
|
slime-indentation
|
|
|
|
slime-sbcl-exts
|
|
|
|
slime-company)))
|
2020-07-26 14:36:43 +02:00
|
|
|
|
|
|
|
(use-package org
|
2021-05-13 09:55:24 +02:00
|
|
|
:init
|
2021-05-22 12:22:19 +02:00
|
|
|
(org-babel-lob-ingest "~/.emacs.d/library-of-babel.org")
|
2020-07-26 14:36:43 +02:00
|
|
|
:config
|
2021-06-02 18:50:17 +02:00
|
|
|
(setq org-src-fontify-natively t
|
|
|
|
org-src-tab-acts-natively t)
|
|
|
|
|
2020-07-26 14:36:43 +02:00
|
|
|
(setq org-agenda-dim-blocked-tasks nil
|
|
|
|
org-agenda-inhibit-startup nil
|
2021-01-10 10:14:26 +01:00
|
|
|
org-agenda-span 14
|
2020-10-21 13:58:25 +02:00
|
|
|
org-agenda-start-on-weekday nil
|
2021-05-21 10:23:01 +02:00
|
|
|
org-agenda-include-diary t
|
2021-05-23 14:01:15 +02:00
|
|
|
org-refile-targets '((nil :maxlevel . 3))
|
|
|
|
org-export-dispatch-use-expert-ui nil)
|
2021-05-21 10:23:01 +02:00
|
|
|
|
|
|
|
(setq org-clock-out-remove-zero-time-clocks t
|
|
|
|
org-clock-persist t
|
|
|
|
org-clock-rounding-minutes 30
|
|
|
|
org-time-stamp-rounding-minutes '(15 15))
|
2021-05-06 11:52:55 +02:00
|
|
|
|
|
|
|
(setq org-html-doctype "html5"
|
|
|
|
org-html-html5-fancy t
|
|
|
|
org-html-htmlize-output-type nil)
|
|
|
|
|
|
|
|
(setq org-latex-pdf-process (quote ("latexmk -xelatex -shell-escape -quiet -f %f"))
|
|
|
|
org-latex-compiler "xelatex"
|
|
|
|
org-latex-listings t)
|
|
|
|
|
|
|
|
(setq org-babel-shell-names (quote ("sh" "bash" "csh" "ash" "dash" "ksh" "mksh" "posh"))
|
2020-11-25 21:26:37 +01:00
|
|
|
org-adapt-indentation t
|
2020-07-26 14:36:43 +02:00
|
|
|
org-confirm-babel-evaluate nil
|
|
|
|
org-log-done (quote time)
|
2021-05-21 10:23:01 +02:00
|
|
|
org-startup-folded t
|
2020-07-26 14:36:43 +02:00
|
|
|
org-startup-truncated nil
|
2020-11-17 18:21:57 +01:00
|
|
|
org-global-properties (quote (("EFFORT_ALL" . "1:00 2:00 3:00 5:00 8:00 13:00")))
|
2020-11-15 12:58:31 +01:00
|
|
|
org-todo-keywords (quote ((sequence "OPEN" "TODO" "DOING" "|" "DONE")))
|
2021-02-01 12:43:42 +01:00
|
|
|
org-export-backends (quote (ascii beamer html icalendar latex md odt confluence))
|
2020-10-14 17:29:21 +02:00
|
|
|
org-duration-format (quote h:mm)
|
2021-05-12 08:49:17 +02:00
|
|
|
org-src-window-setup 'other-window
|
2020-10-19 08:47:58 +02:00
|
|
|
org-src-lang-modes (quote
|
|
|
|
(("bash" . sh)
|
2021-05-31 17:51:31 +02:00
|
|
|
("elisp" . emacs-lisp)
|
2020-10-19 08:47:58 +02:00
|
|
|
("beamer" . latex)
|
|
|
|
("calc" . fundamental)
|
|
|
|
("dot" . fundamental)
|
|
|
|
("screen" . shell-script)
|
|
|
|
("shell" . sh)
|
2020-11-29 11:51:12 +01:00
|
|
|
("C" . c)
|
2021-01-01 11:37:51 +01:00
|
|
|
("sqlite" . sql)
|
2021-05-27 16:49:39 +02:00
|
|
|
("scheme" . racket)
|
2021-05-12 08:49:17 +02:00
|
|
|
("plantuml" . plantuml)))
|
2020-10-10 12:24:05 +02:00
|
|
|
org-use-property-inheritance nil
|
2020-11-15 12:58:31 +01:00
|
|
|
org-export-with-sub-superscripts nil
|
|
|
|
org-capture-templates (quote
|
2021-05-08 15:18:11 +02:00
|
|
|
(("t" "Task" entry (file+headline "tasks.org" "Tasks") "* OPEN %?\n\s %u\n\s %a")
|
|
|
|
("j" "Journal" entry (file+headline "journal.org" "Journal") "* %<%Y-%m-%d %H:%M:%S %p %Z>\n\s %?")
|
|
|
|
("a" "Appointment today" entry (file+headline "appointments.org" "Appointments") "* %?\n\s %T\n")
|
|
|
|
("A" "Appointment" entry (file+headline "appointments.org" "Appointments") "* %?\n\s %u\n\s"))))
|
2020-11-29 11:51:12 +01:00
|
|
|
(org-babel-do-load-languages
|
|
|
|
'org-babel-load-languages (quote
|
2021-05-27 16:49:39 +02:00
|
|
|
(
|
2020-11-29 11:51:12 +01:00
|
|
|
(emacs-lisp . t)
|
2021-05-27 16:49:39 +02:00
|
|
|
(js . t)
|
|
|
|
(lisp . t)
|
2020-11-29 11:51:12 +01:00
|
|
|
(python . t)
|
|
|
|
(sqlite . t)
|
|
|
|
(shell . t)
|
|
|
|
(plantuml . t)
|
2021-04-26 19:06:35 +02:00
|
|
|
(http . t)
|
2021-05-27 16:49:39 +02:00
|
|
|
))))
|
2020-09-29 16:32:31 +02:00
|
|
|
|
|
|
|
(use-package helpful
|
2021-05-07 11:10:09 +02:00
|
|
|
:commands (helpful-callable helpful-variable helpful-command helpful-key)
|
|
|
|
:custom
|
|
|
|
(counsel-describe-function-function #'helpful-callable)
|
|
|
|
(counsel-describe-variable-function #'helpful-variable)
|
|
|
|
:bind
|
|
|
|
([remap describe-function] . counsel-describe-function)
|
|
|
|
([remap describe-command] . helpful-command)
|
|
|
|
([remap describe-variable] . counsel-describe-variable)
|
|
|
|
([remap describe-key] . helpful-key))
|
2020-09-29 16:32:31 +02:00
|
|
|
|
|
|
|
|
|
|
|
(use-package ox-reveal)
|
2020-11-23 08:38:17 +01:00
|
|
|
|
2020-11-25 09:36:17 +01:00
|
|
|
(use-package powershell)
|
2020-11-26 17:51:51 +01:00
|
|
|
|
2021-06-05 16:57:38 +02:00
|
|
|
;; (use-package geiser
|
|
|
|
;; :config
|
|
|
|
;; (setq geiser-active-implementations '(racket)))
|
2021-05-08 13:46:33 +02:00
|
|
|
|
2021-06-05 16:57:38 +02:00
|
|
|
;; (use-package geiser-racket)
|
2021-04-28 18:08:50 +02:00
|
|
|
|
2021-06-05 16:57:38 +02:00
|
|
|
;; (use-package racket-mode)
|
2021-04-29 22:36:54 +02:00
|
|
|
|
|
|
|
(use-package doom-modeline
|
2021-04-30 08:08:01 +02:00
|
|
|
:init (doom-modeline-mode 1))
|
2021-05-03 11:23:34 +02:00
|
|
|
|
2021-05-16 11:35:50 +02:00
|
|
|
(use-package doom-themes
|
|
|
|
:init (load-theme 'doom-nord t))
|
2021-05-07 11:10:09 +02:00
|
|
|
|
|
|
|
(use-package rainbow-delimiters
|
|
|
|
:hook (prog-mode . rainbow-delimiters-mode))
|
2021-05-21 10:23:01 +02:00
|
|
|
|
|
|
|
(use-package flyspell
|
|
|
|
:config
|
|
|
|
(add-hook 'text-mode-hook #'flyspell-mode)
|
2021-05-28 16:11:25 +02:00
|
|
|
;;(add-hook 'prog-mode-hook #'flyspell-prog-mode)
|
|
|
|
)
|
2021-05-27 16:51:17 +02:00
|
|
|
|
|
|
|
(use-package org-tree-slide
|
|
|
|
:custom
|
|
|
|
(org-image-actual-width nil))
|
2021-05-28 18:30:49 +02:00
|
|
|
|
|
|
|
(use-package ace-window)
|
|
|
|
|
|
|
|
(use-package markdown-mode)
|
|
|
|
|
|
|
|
(use-package yaml-mode)
|
2021-05-30 18:10:55 +02:00
|
|
|
|
|
|
|
(use-package webpaste)
|
2021-06-03 15:07:37 +02:00
|
|
|
|
|
|
|
(use-package slime-company
|
|
|
|
:after (slime company)
|
|
|
|
:config (setq slime-company-after-completion 'slime-company-just-one-space))
|
2021-06-05 16:57:05 +02:00
|
|
|
|
|
|
|
(use-package erc
|
|
|
|
:config
|
|
|
|
(setq erc-track-shorten-start 8
|
|
|
|
erc-kill-buffer-on-part t
|
|
|
|
erc-auto-query 'bury
|
|
|
|
erc-hide-list '("JOIN" "PART" "QUIT")
|
|
|
|
erc-network-hide-list '(("irc.libera.chat" "JOIN" "PART" "QUIT"))
|
|
|
|
erc-channel-hide-list '(("#emacs" "JOIN" "PART" "QUIT"))
|
|
|
|
erc-rename-buffers t
|
|
|
|
erc-autojoin-channels-alist '(("libera.chat" "#emacs" "#commonlisp"))
|
|
|
|
erc-interpret-mirc-color t
|
|
|
|
erc-modules '(autojoin button completion fill irccontrols list match menu move-to-prompt netsplit networks noncommands notifications readonly ring stamp track truncate)))
|
|
|
|
|
|
|
|
(use-package erc-image
|
|
|
|
:after erc
|
|
|
|
:config
|
|
|
|
(setq erc-image-inline-rescale 300)
|
|
|
|
(add-to-list 'erc-modules 'image))
|
|
|
|
|
|
|
|
(use-package emojify
|
|
|
|
:hook (erc-mode . emojify-mode)
|
|
|
|
:commands emojify-mode)
|
2021-06-07 17:46:42 +02:00
|
|
|
|
|
|
|
(use-package rust-mode)
|