aboutsummaryrefslogblamecommitdiff
path: root/home/programs/emacs/init.el
blob: e803900830e285b8fdbca719a7f3999f00e869ec (plain) (tree)
1
2
3
4
5
6
7
8
9





                                                                         
                                                                                               
 
                                 

                                                                                     
                                          
 


                          
                    
                           
 
                   



                                       
 












                                        




                                     
                     

                                                            
;;; init.el --- This is where all emacs start. -*- lexical-binding: t -*-

;;; Commentary:

;;; Code:

(add-to-list 'load-path (concat user-emacs-directory (convert-standard-filename "site-lisp/")))

(use-package exec-path-from-shell
  :custom
  (exec-path-from-shell-variables '("PATH" "MANPATH" "GOPATH" "GOBIN" "ASPELL_CONF"))
  :init (exec-path-from-shell-initialize))

(require 'init-base)
(require 'init-ui)
(require 'init-completion)
(require 'init-text)
(require 'init-programming)

(use-package server
  :config
  (setq server-client-instructions nil)
  (unless (server-running-p)
    (server-start)))

(use-package eshell
  :commands (eshell eshell-command)
  :bind (("C-r" . consult-history))
  :custom
  (eshell-hist-ignoredups t)
  (eshell-history-size 50000)
  (eshell-ls-dired-initial-args '("-h"))
  (eshell-ls-initial-args "-h")
  (eshell-ls-exclude-regexp "~\\'")
  (eshell-save-history-on-exit t)
  (eshell-stringify-t nil)
  (eshell-term-name "ansi"))

(eshell/alias "ls" "eza $*")
(eshell/alias "la" "eza -la $*")
(eshell/alias "ll" "eza -la -L=1 $*")
(eshell/alias "lt" "eza -aT -L=2 $*")

;;; init.el ends here
;; byte-compile-warnings: (not docstrings lexical noruntime)
;; End: