emacs config
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

183 lines
4.1 KiB

3 years ago
* Look'n'feel
** Vim Emulation
*** Evil
#+begin_src emacs-lisp
(use-package evil
:ensure t
:config
(evil-mode 1)
(defalias #'forward-evil-word #'forward-evil-symbol)
(setq-default evil-symbol-word-search t)
(use-package key-chord
:ensure t
:config
(key-chord-mode 1)
(key-chord-define evil-insert-state-map "jj" 'evil-normal-state))
(use-package evil-commentary
:ensure t
:config
(evil-commentary-mode))
(use-package evil-collection
:ensure t
:config (evil-collection-init)))
#+end_src
** Prettify
*** Remove menubar
#+begin_src emacs-lisp
(menu-bar-mode -1)
#+end_src
*** Remove toolbar
#+begin_src emacs-lisp
(tool-bar-mode -1)
#+end_src
*** Remove scrollbar
#+begin_src emacs-lisp
(scroll-bar-mode -1)
#+end_src
*** Show line numbers
#+begin_src emacs-lisp
(global-linum-mode t)
#+end_src
*** Show matching parens
#+begin_src emacs-lisp
(show-paren-mode 1)
#+end_src
*** Highlight line [DISABLED]
# #+begin_src emacs-lisp
# (global-hl-line-mode t)
# #+end_src
*** Rainbow delimiters
#+begin_src emacs-lisp
(use-package rainbow-delimiters
:ensure t
:config
(add-hook 'prog-mode-hook 'rainbow-delimiters-mode))
#+end_src
*** Theme
#+begin_src emacs-lisp
(use-package green-phosphor-theme
:ensure t
:config
(load-theme 'green-phosphor t))
#+end_src
*** Font
#+begin_src emacs-lisp
(add-to-list 'default-frame-alist '(font . "IBM Plex Mono" ))
(set-face-attribute 'default t :font "IBM Plex Mono 10")
#+end_src
*** Org
**** Org Bullet
#+begin_src emacs-lisp
(use-package org-bullets
:ensure t
:config
(add-hook 'org-mode-hook (lambda () (org-bullets-mode))))
#+end_src
**** Display Image
#+begin_src emacs-lisp
(setq org-startup-with-inline-images t)
#+end_src
*** Split windows verticaly [DISABLED]
# #+begin_src emacs-lisp
# (setq split-height-threshold nil)
# (setq split-width-threshold 1)
# #+end_src
*** Loop text on small windows
#+begin_src emacs-lisp
(setq truncate-partial-width-windows nil)
#+end_src
*** Visual Line Mode
#+begin_src elisp
(visual-line-mode 1)
#+end_src
** Helper
*** Show which key
#+begin_src emacs-lisp
(use-package which-key
:ensure t
:config
(which-key-mode))
#+end_src
*** Start in scratch pad
#+begin_src emacs-lisp
(setq inhibit-startup-message t)
#+end_src
** Aliases
*** Yes/No to y/n
#+begin_src emacs-lisp
(defalias 'yes-or-no-p 'y-or-n-p)
#+end_src
** Disable backups and auto-save
#+begin_src emacs-lisp
(setq make-backup-files nil)
(setq auto-save-default nil)
#+end_src
** Emojify
#+begin_src emacs-lisp
(use-package emojify
:hook (after-init . global-emojify-mode))
#+end_src
* Development
** Org
#+begin_src emacs-lisp
(setq org-src-fontify-natively t)
(setq org-src-tab-acts-natively t)
(use-package org-tree-slide
:ensure t
:custom (org-image-actual-width nil))
#+end_src
** Autocompletion
*** Company
#+begin_src emacs-lisp
(use-package company
:ensure t
:config (add-hook 'after-init-hook 'global-company-mode))
#+end_src
** Syntax checking
*** Flycheck
#+begin_src emacs-lisp
(use-package flycheck
:ensure t
:config
(global-flycheck-mode))
#+end_src
** Common lisp
*** Sly
#+begin_src emacs-lisp
(use-package sly
:ensure t
:config (setq inferior-lisp-program "/usr/bin/sbcl"))
#+end_src
*** Par Edit
#+begin_src emacs-lisp
(use-package paredit
:ensure t
:config
(add-hook 'emacs-lisp-mode-hook #'enable-paredit-mode)
(add-hook 'eval-expression-minibuffer-setup-hook #'enable-paredit-mode)
(add-hook 'ielm-mode-hook #'enable-paredit-mode)
(add-hook 'lisp-mode-hook #'enable-paredit-mode)
(add-hook 'lisp-interaction-mode-hook #'enable-paredit-mode)
(add-hook 'scheme-mode-hook #'enable-paredit-mode)
(add-hook 'sly-mode-hook #'enable-paredit-mode))
#+end_src
** WebAssembly
#+begin_src emacs-lisp
(add-to-list 'load-path "~/.emacs.d/packages/wat-mode/")
(require 'wat-mode)
#+end_src
** Magit
#+begin_src emacs-lisp
(use-package magit :ensure t)
#+end_src
** GLSL
#+begin_src elisp
(use-package glsl-mode :ensure t)
(use-package company-glsl :ensure t)
#+end_src
* Gemini
** Elpher
#+begin_src elisp
(use-package elpher :ensure t)
#+end_src