Personalizzazioni per emacs
This commit is contained in:
113
.emacs
113
.emacs
@@ -1,42 +1,83 @@
|
||||
(package-initialize)
|
||||
;;; RCs
|
||||
|
||||
;; Aggiunge il repository melpa
|
||||
(add-to-list 'package-archives
|
||||
'("melpa" . "https://melpa.org/packages/"))
|
||||
(package-initialize) ;Package.el won't shut up
|
||||
;without this line being
|
||||
;specificaly here and not
|
||||
;anywhere else ~_~
|
||||
(load "~/.emacs.rc/rc.el")
|
||||
|
||||
;; Configurazione di Smex
|
||||
(global-set-key (kbd "M-x") 'smex)
|
||||
(global-set-key (kbd "M-X") 'smex-major-mode-commands)
|
||||
;; This is you old M-x
|
||||
(global-set-key (kbd "C-c C-c M-x") 'execute-extended-command)
|
||||
(load "~/.emacs.rc/misc-rc.el")
|
||||
(load "~/.emacs.rc/appearance-rc.el")
|
||||
(load "~/.emacs.rc/ido-smex-rc.el")
|
||||
(load "~/.emacs.rc/ccmode-rc.el")
|
||||
(load "~/.emacs.rc/paredit-rc.el")
|
||||
(load "~/.emacs.rc/emacs-lisp-rc.el")
|
||||
(load "~/.emacs.rc/haskell-mode-rc.el")
|
||||
;;(load "~/.emacs.rc/whitespace-mode-rc.el")
|
||||
(load "~/.emacs.rc/magit-rc.el")
|
||||
(load "~/.emacs.rc/multiple-cursors-rc.el")
|
||||
(load "~/.emacs.rc/openwith-rc.el")
|
||||
(load "~/.emacs.rc/dired-rc.el")
|
||||
(load "~/.emacs.rc/helm-rc.el")
|
||||
(load "~/.emacs.rc/yasnippet-rc.el")
|
||||
(load "~/.emacs.rc/rainbow-rc.el")
|
||||
(load "~/.emacs.rc/word-wrap-rc.el")
|
||||
(load "~/.emacs.rc/js2-mode-rc.el")
|
||||
(load "~/.emacs.rc/nxml-mode-rc.el")
|
||||
(load "~/.emacs.rc/tramp-rc.el")
|
||||
(load "~/.emacs.rc/org-mode-rc.el")
|
||||
(load "~/.emacs.rc/org-cliplink-rc.el")
|
||||
(load "~/.emacs.rc/org-babel-rc.el")
|
||||
(load "~/.emacs.rc/org-capture-rc.el")
|
||||
(load "~/.emacs.rc/autocommit-rc.el")
|
||||
(load "~/.emacs.rc/powershell-rc.el")
|
||||
(load "~/.emacs.rc/eldoc-mode-rc.el")
|
||||
(load "~/.emacs.rc/recentf-mode-rc.el")
|
||||
(load "~/.emacs.rc/company-rc.el")
|
||||
(load "~/.emacs.rc/tide-rc.el")
|
||||
(load "~/.emacs.rc/editorconfig-rc.el")
|
||||
(load "~/.emacs.rc/nasm-mode-rc.el")
|
||||
(load "~/.emacs.rc/latex-mode-rc.el")
|
||||
(load "~/.emacs.rc/agda2-mode-rc.el")
|
||||
(load "~/.emacs.rc/move-text-rc.el")
|
||||
|
||||
;; Elimina lo screen allo startup
|
||||
(setq inhibit-startup-screen t)
|
||||
(add-to-list 'auto-mode-alist '("\\.ebi\\'" . lisp-mode))
|
||||
|
||||
;; Elimina la menù bar
|
||||
(menu-bar-mode 0)
|
||||
|
||||
;; Elimina la toolbar
|
||||
(tool-bar-mode 0)
|
||||
|
||||
(ido-mode 1)
|
||||
|
||||
;; Configura il font di default
|
||||
(set-default-font "Fira Code-12")
|
||||
|
||||
(custom-set-variables
|
||||
;; custom-set-variables was added by Custom.
|
||||
;; If you edit it by hand, you could mess it up, so be careful.
|
||||
;; Your init file should contain only one such instance.
|
||||
;; If there is more than one, they won't work right.
|
||||
'(custom-enabled-themes (quote (wombat)))
|
||||
'(package-selected-packages (quote (smex))))
|
||||
(custom-set-faces
|
||||
;; custom-set-faces was added by Custom.
|
||||
;; If you edit it by hand, you could mess it up, so be careful.
|
||||
;; Your init file should contain only one such instance.
|
||||
;; If there is more than one, they won't work right.
|
||||
;;; Packages that don't require configuration
|
||||
(rc/require
|
||||
'scala-mode
|
||||
'd-mode
|
||||
'yaml-mode
|
||||
'glsl-mode
|
||||
'tuareg
|
||||
'lua-mode
|
||||
'less-css-mode
|
||||
'graphviz-dot-mode
|
||||
'clojure-mode
|
||||
'cmake-mode
|
||||
'rust-mode
|
||||
'csharp-mode
|
||||
'nim-mode
|
||||
'jinja2-mode
|
||||
'markdown-mode
|
||||
'purescript-mode
|
||||
'nix-mode
|
||||
'dockerfile-mode
|
||||
'love-minor-mode
|
||||
'toml-mode
|
||||
'nginx-mode
|
||||
'kotlin-mode
|
||||
'go-mode
|
||||
'php-mode
|
||||
'racket-mode
|
||||
'qml-mode
|
||||
'ag
|
||||
'hindent
|
||||
'elpy
|
||||
'typescript-mode
|
||||
)
|
||||
|
||||
;; Imposta il backup della configurazione
|
||||
(setq backup-directory-alist '(("." . "~/.emacs_saves")))
|
||||
(load "~/.emacs.shadow/shadow-rc.el" t)
|
||||
|
||||
(setq custom-file "~/.emacs-custom.el")
|
||||
(load custom-file)
|
||||
|
||||
Reference in New Issue
Block a user