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)
|
|
|
|
|
2020-07-26 14:36:43 +02:00
|
|
|
(use-package company
|
|
|
|
:init
|
|
|
|
(global-company-mode))
|
|
|
|
|
|
|
|
(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-12 08:37:12 +02:00
|
|
|
:custom (olivetti-body-width 85))
|
2021-01-01 11:37:51 +01:00
|
|
|
|
2020-07-26 14:36:43 +02:00
|
|
|
(use-package nov
|
2021-01-01 11:37:51 +01:00
|
|
|
:config (setq nov-text-width nil nov-variable-pitch nil)
|
2021-05-12 08:37:12 +02:00
|
|
|
:hook (nov-mode . olivetti-mode))
|
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-01-01 11:37:51 +01: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")))
|
|
|
|
|
2020-12-02 17:24:45 +01: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-03-18 20:52:11 +01:00
|
|
|
:hook ((python-mode . eglot-ensure)
|
|
|
|
(c-mode . eglot-ensure)
|
|
|
|
(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
|
|
|
|
:mode "\\.html?\\'"
|
|
|
|
:init
|
|
|
|
(dolist (hook '(emmet-mode ac-emmet-html-setup ac-emmet-css-setup))
|
|
|
|
(add-hook 'web-mode-hook hook))
|
|
|
|
: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
|
|
|
|
web-mode-enable-current-column-highlight t
|
|
|
|
web-mode-ac-sources-alist
|
|
|
|
'(("css" . (ac-source-css-property ac-source-emmet-css-snippets))
|
|
|
|
("html" . (ac-source-emmet-html-aliases
|
|
|
|
ac-source-emmet-html-snippets))))
|
|
|
|
(add-hook 'web-mode-before-auto-complete-hooks
|
|
|
|
'(lambda ()
|
|
|
|
(let ((web-mode-cur-language (web-mode-language-at-pos)))
|
|
|
|
(if (string= web-mode-cur-language "css")
|
|
|
|
(setq emmet-use-css-transform t)
|
|
|
|
(setq emmet-use-css-transform nil))))))
|
|
|
|
|
|
|
|
(use-package slime
|
|
|
|
:config (setq inferior-lisp-program (executable-find "sbcl")))
|
|
|
|
|
|
|
|
(use-package org
|
2021-05-13 09:55:24 +02:00
|
|
|
:init
|
|
|
|
(add-hook 'org-mode-hook #'org-babel-lob-ingest "~/.emacs.d/library-of-babel.org")
|
2020-07-26 14:36:43 +02:00
|
|
|
:config
|
|
|
|
(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-06 11:52:55 +02:00
|
|
|
org-agenda-include-diary t)
|
|
|
|
|
|
|
|
(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-clock-persist t
|
|
|
|
org-confirm-babel-evaluate nil
|
|
|
|
org-log-done (quote time)
|
|
|
|
org-startup-folded t
|
|
|
|
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)
|
|
|
|
("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-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
|
|
|
|
((js . t)
|
|
|
|
(gnuplot . t)
|
|
|
|
(emacs-lisp . t)
|
|
|
|
(python . t)
|
|
|
|
(sqlite . t)
|
|
|
|
(lisp . t)
|
|
|
|
(shell . t)
|
|
|
|
(css . t)
|
|
|
|
(calc . t)
|
|
|
|
(plantuml . t)
|
|
|
|
(C . t)
|
2021-04-22 16:06:12 +02:00
|
|
|
(dot . t)
|
2021-04-22 16:12:44 +02:00
|
|
|
(go . t)
|
2021-04-26 19:06:35 +02:00
|
|
|
(rust . t)
|
|
|
|
(http . t)
|
|
|
|
(typescript . t)))))
|
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 counsel
|
2021-05-07 11:10:09 +02:00
|
|
|
:bind (("C-M-j" . 'counsel-switch-buffer)
|
2020-09-29 16:32:31 +02:00
|
|
|
:map minibuffer-local-map
|
2021-05-07 11:10:09 +02:00
|
|
|
("C-r" . 'counsel-minibuffer-history))
|
|
|
|
:custom
|
|
|
|
(counsel-linux-app-format-function #'counsel-linux-app-format-function-name-only)
|
|
|
|
:config
|
|
|
|
(counsel-mode 1))
|
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-05-16 09:57:04 +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-11-26 17:57:36 +01:00
|
|
|
|
|
|
|
(use-package geiser
|
|
|
|
:config
|
2021-05-08 13:46:33 +02:00
|
|
|
(setq geiser-active-implementations '(racket)))
|
|
|
|
|
|
|
|
(use-package geiser-racket)
|
2021-04-28 18:08:50 +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))
|