mirror of
https://github.com/Horhik/dotfiles.git
synced 2024-10-31 22:17:31 +00:00
156 lines
5.7 KiB
EmacsLisp
Executable file
156 lines
5.7 KiB
EmacsLisp
Executable file
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
|
|
|
|
;; Place your private configuration here! Remember, you do not need to run 'doom
|
|
;; sync' after modifying this file!
|
|
|
|
|
|
;; Some functionality uses this to identify you, e.g. GPG configuration, email
|
|
;; clients, file templates and snippets.
|
|
(setq user-full-name "John Doe"
|
|
user-mail-address "john@doe.com")
|
|
|
|
;; Doom exposes five (optional) variables for controlling fonts in Doom. Here
|
|
;; are the three important ones:
|
|
;;
|
|
;; + `doom-font'
|
|
;; + `doom-variable-pitch-font'
|
|
;; + `doom-big-font' -- used for `doom-big-font-mode'; use this for
|
|
;; presentations or streaming.
|
|
;;
|
|
;; They all accept either a font-spec, font string ("Input Mono-12"), or xlfd
|
|
;; font string. You generally only need these two:
|
|
;; (setq doom-font (font-spec :family "monospace" :size 12 :weight 'semi-light)
|
|
;; doom-variable-pitch-font (font-spec :family "sans" :size 13))
|
|
|
|
;; There are two ways to load a theme. Both assume the theme is installed and
|
|
;; available. You can either set `doom-theme' or manually load a theme with the
|
|
;; `load-theme' function. This is the default:
|
|
(setq doom-theme 'doom-one)
|
|
|
|
;; If you use `org' and don't want your org files in the default location below,
|
|
;; change `org-directory'. It must be set before org loads!
|
|
(setq org-directory "~/org/")
|
|
|
|
;; This determines the style of line numbers in effect. If set to `nil', line
|
|
;; numbers are disabled. For relative line numbers, set this to `relative'.
|
|
(setq display-line-numbers-type t)
|
|
|
|
|
|
;; Here are some additional functions/macros that could help you configure Doom:
|
|
;;
|
|
;; - `load!' for loading external *.el files relative to this one
|
|
;; - `use-package!' for configuring packages
|
|
;; - `after!' for running code after a package has loaded
|
|
;; - `add-load-path!' for adding directories to the `load-path', relative to
|
|
;; this file. Emacs searches the `load-path' when you load packages with
|
|
;; `require' or `use-package'.
|
|
;; - `map!' for binding new keys
|
|
;;
|
|
;; To get information about any of these functions/macros, move the cursor over
|
|
;; the highlighted symbol at press 'K' (non-evil users must press 'C-c c k').
|
|
;; This will open documentation for it, including demos of how they are used.
|
|
;;
|
|
;; You can also try 'gd' (or 'C-c c d') to jump to their definition and see how
|
|
;; they are implemented.
|
|
(custom-set-variables
|
|
;; custom-set-variables was added by Custom.
|
|
;; If you edit it by hand, you could mess it up, so be careful.
|
|
;; Your init file should contain only one such instance.
|
|
;; If there is more than one, they won't work right.
|
|
'(ansi-color-names-vector
|
|
["#21242b" "#ff6c6b" "#98be65" "#ECBE7B" "#51afef" "#c678dd" "#46D9FF" "#bbc2cf"])
|
|
'(custom-safe-themes
|
|
(quote
|
|
("912cac216b96560654f4f15a3a4d8ba47d9c604cbc3b04801e465fb67a0234f0" default)))
|
|
'(fci-rule-color "#5B6268")
|
|
'(jdee-db-active-breakpoint-face-colors (cons "#1B2229" "#51afef"))
|
|
'(jdee-db-requested-breakpoint-face-colors (cons "#1B2229" "#98be65"))
|
|
'(jdee-db-spec-breakpoint-face-colors (cons "#1B2229" "#3f444a"))
|
|
'(objed-cursor-color "#ff6c6b")
|
|
'(package-archives
|
|
(quote
|
|
(("gnu" . "https://elpa.gnu.org/packages/")
|
|
("melpa" . "https://melpa.org/packages/"))))
|
|
'(package-selected-packages
|
|
(quote
|
|
(multiple-cursors doom-themes neotree pretty-symbols evil-mc haskell-emacs-base json-mode zpl-mode nix-haskell-mode ghci-completion haskell-snippets haskell-mode)))
|
|
'(pdf-view-midnight-colors (cons "#bbc2cf" "#282c34"))
|
|
'(rustic-ansi-faces
|
|
["#282c34" "#ff6c6b" "#98be65" "#ECBE7B" "#51afef" "#c678dd" "#46D9FF" "#bbc2cf"])
|
|
'(vc-annotate-background "#282c34")
|
|
'(vc-annotate-color-map
|
|
(list
|
|
(cons 20 "#98be65")
|
|
(cons 40 "#b4be6c")
|
|
(cons 60 "#d0be73")
|
|
(cons 80 "#ECBE7B")
|
|
(cons 100 "#e6ab6a")
|
|
(cons 120 "#e09859")
|
|
(cons 140 "#da8548")
|
|
(cons 160 "#d38079")
|
|
(cons 180 "#cc7cab")
|
|
(cons 200 "#c678dd")
|
|
(cons 220 "#d974b7")
|
|
(cons 240 "#ec7091")
|
|
(cons 260 "#ff6c6b")
|
|
(cons 280 "#cf6162")
|
|
(cons 300 "#9f585a")
|
|
(cons 320 "#6f4e52")
|
|
(cons 340 "#5B6268")
|
|
(cons 360 "#5B6268")))
|
|
'(vc-annotate-very-old-color nil))
|
|
(custom-set-faces
|
|
;; custom-set-faces was added by Custom.
|
|
;; If you edit it by hand, you could mess it up, so be careful.
|
|
;; Your init file should contain only one such instance.
|
|
;; If there is more than one, they won't work right.
|
|
)
|
|
|
|
;; Haskell
|
|
(require 'haskell-mode)
|
|
(add-hook 'haskell-mode-hook 'interactive-haskell-mode)
|
|
(interactive-haskell-mode)
|
|
(put 'customize-themes 'disabled nil)
|
|
|
|
;; Fonts
|
|
(add-to-list 'default-frame-alist '(font . "Mononoki" ))
|
|
(set-face-attribute 'default t :font "Mononoki" )
|
|
|
|
;; Multiple cursors
|
|
(require 'evil-mc)
|
|
(evil-mc-mode 1)
|
|
|
|
;;
|
|
(add-hook 'haskell-mode-hook (lambda ()
|
|
(push '("->" . "➜") prettify-symbols-alist)
|
|
(push '("=>" . " ⇒" ) prettify-symbols-alist)
|
|
(push '("=<" . "≤" ) prettify-symbols-alist)
|
|
(push '(">=" . "≥" ) prettify-symbols-alist)
|
|
(push '("/=" . "≠" ) prettify-symbols-alist)
|
|
(push '("f" . "⨏" ) prettify-symbols-alist)
|
|
(push '("lambda" . "λ" ) prettify-symbols-alist)
|
|
(prettify-symbols-mode)))
|
|
|
|
(require 'neotree)
|
|
(use-package doom-themes
|
|
:config
|
|
;; Global settings (defaults)
|
|
(setq doom-themes-enable-bold t ; if nil, bold is universally disabled
|
|
doom-themes-enable-italic t) ; if nil, italics is universally disabled
|
|
(load-theme 'doom-one t)
|
|
|
|
(doom-themes-neotree-config)
|
|
)
|
|
|
|
|
|
(global-set-key (kbd "<f9>") 'neotree-toggle)
|
|
|
|
(require 'multiple-cursors)
|
|
(global-set-key (kbd "C-S-c C-S-c") 'mc/Edit-lines)
|
|
(global-set-key (kbd "C->") 'mc/mark-next-like-this)
|
|
(global-set-key (kbd "C-<") 'mc/mark-previous-like-this)
|
|
(global-set-key (kbd "C-c C-<") 'mc/mark-all-like-this)
|
|
|
|
(global-unset-key (kbd "M-<down-mouse-1>"))
|
|
(global-set-key (kbd "M-<mouse-1>") 'mc/add-cursor-on-click)
|