summaryrefslogtreecommitdiff
path: root/.emacs.d/init.el
diff options
context:
space:
mode:
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'"