straight changes
This commit is contained in:
@@ -1,2 +1,3 @@
|
|||||||
;; This needs to be set before emacs compiles LSP mode
|
;; This needs to be set before emacs compiles LSP mode
|
||||||
(setenv "LSP_USE_PLISTS" "true")
|
(setenv "LSP_USE_PLISTS" "true")
|
||||||
|
(setq package-enable-at-startup nil)
|
||||||
|
|||||||
28
init.el
28
init.el
@@ -6,7 +6,6 @@
|
|||||||
(make-directory "~/.emacs_autosave/" t)
|
(make-directory "~/.emacs_autosave/" t)
|
||||||
(setq auto-save-file-name-transforms '((".*" "~/.emacs_autosave/" t)))
|
(setq auto-save-file-name-transforms '((".*" "~/.emacs_autosave/" t)))
|
||||||
(setq backup-directory-alist '(("." . "~/.emacs_backups/")))
|
(setq backup-directory-alist '(("." . "~/.emacs_backups/")))
|
||||||
(setq package-enable-at-startup nil)
|
|
||||||
(setq visible-bell nil)
|
(setq visible-bell nil)
|
||||||
(setq ring-bell-function 'ignore)
|
(setq ring-bell-function 'ignore)
|
||||||
(setq shell-file-name "/bin/bash")
|
(setq shell-file-name "/bin/bash")
|
||||||
@@ -29,7 +28,7 @@
|
|||||||
(setq require-final-newline t)
|
(setq require-final-newline t)
|
||||||
|
|
||||||
(setq warning-minimum-level :error) ; Don't show *warnings*
|
(setq warning-minimum-level :error) ; Don't show *warnings*
|
||||||
(set-frame-font "UbuntuMono 14" nil t)
|
(set-frame-font "Ubuntu Mono 12" nil t)
|
||||||
|
|
||||||
;; Stupid bold font for no reason, BEGONE!
|
;; Stupid bold font for no reason, BEGONE!
|
||||||
(mapc
|
(mapc
|
||||||
@@ -47,10 +46,6 @@
|
|||||||
;; PACKAGES
|
;; PACKAGES
|
||||||
;;
|
;;
|
||||||
|
|
||||||
;; Package init
|
|
||||||
(require 'package)
|
|
||||||
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
|
|
||||||
|
|
||||||
;; Straight.el
|
;; Straight.el
|
||||||
(defvar bootstrap-version)
|
(defvar bootstrap-version)
|
||||||
(let ((bootstrap-file
|
(let ((bootstrap-file
|
||||||
@@ -69,6 +64,7 @@
|
|||||||
(load bootstrap-file nil 'nomessage))
|
(load bootstrap-file nil 'nomessage))
|
||||||
|
|
||||||
(straight-use-package 'use-package) ; use-package install
|
(straight-use-package 'use-package) ; use-package install
|
||||||
|
(setq straight-use-package-by-default t) ; always use straight to install packages
|
||||||
(setq use-package-always-ensure t) ; always auto-install packages
|
(setq use-package-always-ensure t) ; always auto-install packages
|
||||||
|
|
||||||
;; UTILS
|
;; UTILS
|
||||||
@@ -93,6 +89,11 @@
|
|||||||
:config
|
:config
|
||||||
(global-set-key (kbd "C-c C-g") #'ack))
|
(global-set-key (kbd "C-c C-g") #'ack))
|
||||||
|
|
||||||
|
;; Dynamic tabbing
|
||||||
|
(use-package dtrt-indent
|
||||||
|
:config
|
||||||
|
(dtrt-indent-global-mode t))
|
||||||
|
|
||||||
;; M-x crux-rename-file-and-buffer, etc.
|
;; M-x crux-rename-file-and-buffer, etc.
|
||||||
(use-package crux
|
(use-package crux
|
||||||
:config
|
:config
|
||||||
@@ -160,6 +161,7 @@
|
|||||||
|
|
||||||
;;; No config
|
;;; No config
|
||||||
(use-package apache-mode)
|
(use-package apache-mode)
|
||||||
|
(use-package yaml-mode)
|
||||||
(use-package raku-mode)
|
(use-package raku-mode)
|
||||||
(use-package caddyfile-mode)
|
(use-package caddyfile-mode)
|
||||||
(use-package json-mode)
|
(use-package json-mode)
|
||||||
@@ -180,7 +182,12 @@
|
|||||||
;;; With config
|
;;; With config
|
||||||
|
|
||||||
;;;; BEGIN theming
|
;;;; BEGIN theming
|
||||||
|
;; I install a lot of themes for seemingly no reason :~)
|
||||||
(use-package all-the-icons)
|
(use-package all-the-icons)
|
||||||
|
(use-package nerd-icons)
|
||||||
|
(use-package doom-modeline
|
||||||
|
:init
|
||||||
|
(doom-modeline-mode +1))
|
||||||
(use-package doom-themes
|
(use-package doom-themes
|
||||||
:custom
|
:custom
|
||||||
;; Global settings (defaults)
|
;; Global settings (defaults)
|
||||||
@@ -194,6 +201,9 @@
|
|||||||
(doom-themes-neotree-config)
|
(doom-themes-neotree-config)
|
||||||
;; Corrects (and improves) org-mode's native fontification.
|
;; Corrects (and improves) org-mode's native fontification.
|
||||||
(doom-themes-org-config))
|
(doom-themes-org-config))
|
||||||
|
(use-package darcula-theme
|
||||||
|
:config
|
||||||
|
(load-theme 'darcula t))
|
||||||
;;;;
|
;;;;
|
||||||
|
|
||||||
;;;; BEGIN: web-mode
|
;;;; BEGIN: web-mode
|
||||||
@@ -350,7 +360,11 @@
|
|||||||
(lsp-semantic-tokens-enable nil) ; Related to highlighting, and we defer to treesitter
|
(lsp-semantic-tokens-enable nil) ; Related to highlighting, and we defer to treesitter
|
||||||
|
|
||||||
:init
|
:init
|
||||||
(setq lsp-use-plists t))
|
(setq lsp-use-plists t)
|
||||||
|
:config
|
||||||
|
(add-hook 'lsp-mode-hook (lambda ()
|
||||||
|
(setq-local completion-styles '(orderless)
|
||||||
|
completion-category-defaults nil)))
|
||||||
|
|
||||||
(use-package lsp-ui
|
(use-package lsp-ui
|
||||||
:ensure t
|
:ensure t
|
||||||
|
|||||||
Reference in New Issue
Block a user