summaryrefslogtreecommitdiff
path: root/.emacs.d/init.el
diff options
context:
space:
mode:
authorThanosApollo <[email protected]>2022-11-18 17:17:35 +0200
committerThanosApollo <[email protected]>2022-11-18 17:17:35 +0200
commit8a2e9a892ca99d68f79b77ece813cd475b0b86cc (patch)
tree499226644dc86cdcc8eedc16b4ae14dd3da21e9a /.emacs.d/init.el
parent14321eb710829b9e70d2aca79e3f5d9c51d1eb6b (diff)
Add html-lsp hook and rainbow +clean
Diffstat (limited to '.emacs.d/init.el')
-rw-r--r--.emacs.d/init.el55
1 files changed, 31 insertions, 24 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index 8fa1ae8..0087221 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -6,14 +6,13 @@
(load "my-functions.el")
(load "init-keys.el")
-(use-package corfu)
-(use-package hacker-typer)
-
(setq package-archives '(("melpa" . "https://melpa.org/packages/")
("org" . "https://orgmode.org/elpa/")
("elpa" . "https://elpa.gnu.org/packages/")))
-
-(setq apropos-sort-by-scores t)
+
+(use-package corfu)
+(use-package hacker-typer)
+
(package-initialize)
(unless package-archive-contents
(package-refresh-contents))
@@ -26,17 +25,18 @@
(setq inhibit-startup-message nil)
- (defvar apollo/default-font-size 130)
+(defvar apollo/default-font-size 130)
- (set-face-attribute 'default nil :font "JetBrains Mono" :height 130)
+(set-face-attribute 'default nil :font "JetBrains Mono" :height 130)
- (scroll-bar-mode -1)
- (tool-bar-mode -1)
- (tooltip-mode -1)
- (set-fringe-mode 10)
- (menu-bar-mode -1)
- (blink-cursor-mode -1)
- (menu-bar--visual-line-mode-enable)
+
+(scroll-bar-mode -1)
+(tool-bar-mode -1)
+(tooltip-mode -1)
+(set-fringe-mode 10)
+(menu-bar-mode -1)
+(blink-cursor-mode -1)
+(menu-bar--visual-line-mode-enable)
;Visible bell
(setq visible-bell t)
;;Transparency
@@ -290,14 +290,21 @@
(add-hook 'org-mode-hook (lambda () (add-hook 'after-save-hook #'apollo/org-babel-tangle-config)))
+
;Developer
;;Essentials
(electric-pair-mode 1)
+;;html
+(add-hook 'html-mode-hook #'lsp-deferred)
+
+
;;emacs-lisp
(setq tab-always-indent 'complete)
(add-to-list 'completion-styles 'initials t)
+(require 'rainbow-delimiters)
+(add-hook 'emacs-lisp-mode-hook #'rainbow-delimiters-mode)
;;instal flyckeck
(use-package flycheck
@@ -360,16 +367,16 @@
(if (looking-at-p "^ +\/?> *$")
(delete-char sgml-basic-offset)))))
-(use-package ac-html
- :mode ".html"
- :hook (html-mode . lsp-deferred)
- :config
- (defadvice js-jsx-indent-line (after js-jsx-indent-line-after-hack activate)
- "Workaround sgml-mode and follow airbnb component style."
- (save-excursion
- (beginning-of-line)
- (if (looking-at-p "^ +\/?> *$")
- (delete-char sgml-basic-offset)))))
+;; (use-package ac-html
+;; :mode ".html"
+;; :hook (html-mode . lsp-deferred)
+;; :config
+;; (defadvice js-jsx-indent-line (after js-jsx-indent-line-after-hack activate)
+;; "Workaround sgml-mode and follow airbnb component style."
+;; (save-excursion
+;; (beginning-of-line)
+;; (if (looking-at-p "^ +\/?> *$")
+;; (delete-char sgml-basic-offset)))))
(use-package typescript-mode
:mode ".ts'"