Skip to content

Latest commit

 

History

History
250 lines (170 loc) · 4.48 KB

config.org

File metadata and controls

250 lines (170 loc) · 4.48 KB

Config General

Initial Setup

Base

   (require 'package)

     (setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/")
		    ("org" . "https://orgmode.org/elpa/")
		   ("melpa" . "https://melpa.org/packages/")))

   (package-initialize)
     (unless (package-installed-p 'use-package)
	(package-refresh-contents)
	(package-install 'use-package))

     (require 'use-package)
     (setq use-package-always-ensure t)

   (setq backup-directory-alist `(("." . "~/.saves")))

   (setq skeleton-pair t)
   (global-set-key "[" 'skeleton-pair-insert-maybe)
   (global-set-key "(" 'skeleton-pair-insert-maybe)
   (global-set-key "{" 'skeleton-pair-insert-maybe)
   (global-set-key "'" 'skeleton-pair-insert-maybe)
   (global-set-key "\"" 'skeleton-pair-insert-maybe)
    (global-set-key "<" 'skeleton-pair-insert-maybe)

 (add-to-list 'load-path (concat user-emacs-directory "elisp"))

Counsel

(use-package counsel
    :bind
    ("M-x" . counsel-M-x)
    ("C-x C-m" . counsel-M-x)
    ("C-x C-f" . counsel-find-file)
    ("C-x c k" . counsel-yank-pop))

Ivy

(use-package ivy
    :bind
    ("C-x s" . swiper)
    ("C-x C-r" . ivy-resume)
    :config
    (ivy-mode 1)
    (setq ivy-use-virtual-buffers nil)
    (define-key read-expression-map (kbd "C-r") 'counsel-expression-history))

Which Key

(use-package which-key
  :defer 0
  :diminish which-key-mode
  :config
  (which-key-mode)
  (setq which-key-idle-delay 1))

Elisp Files

(add-to-list 'load-path (concat user-emacs-directory "elisp"))

Discord Rich Presence

Discord Emacs

LSP

lsp-mode

(load-file "~/.emacs.d/elisp/LSP/lsp-mode.el")

lsp-treemacs

(load-file "~/.emacs.d/elisp/LSP/lsp-treemacs.el")

lsp-ui

(load-file "~/.emacs.d/elisp/LSP/lsp-ui.el")

Autocomplete

Company

(load-file "~/.emacs.d/elisp/Autocomplete/company.el")

Sintax Check

Flycheck

   
(use-package flycheck
    :hook (lsp-deferred . flycheck-mode))

Language

Web

Frontend

TypeScript

;;(load-file "~/.emacs.d/elisp/Language/Web/Frontend/typescript.el")

JavaScript

;;(load-file "~/.emacs.d/elisp/Language/Web/Frontend/javascript.el") 

Vue.js

;;(load-file "~/.emacs.d/elisp/Language/Web/Frontend/vue.el")

Backend

PHP

;; (load-file "~/.emacs.d/elisp/Language/Web/Backend/php.el")

Go

;; (load-file "~/.emacs.d/elisp/Language/Web/Backend/go.el")

General Programing

C/C++

;;(load-file "~/.emacs.d/elisp/Language/Low Level/c-c++.el")

Rust

;;(load-file "~/.emacs.d/elisp/Language/Low Level/rust.el")

Hight Level Programing

Python

;;(load-file "~/.emacs.d/elisp/Language/High Level/python.el")

Lua

     
;;(load-file "~/.emacs.d/elisp/Language/High Level/lua.el")

Ruby

;;(load-file "~/.emacs.d/elisp/Language/High Level/ruby.el")

Functional Programing

Haskell

;;(load-file "~/.emacs.d/elisp/Language/Functional Programing/haskell.el")

GUI

Guiclassic

(tool-bar-mode -1)
(scroll-bar-mode -1)
(menu-bar-mode -1)

Theme

(load-file "~/.emacs.d/elisp/GUI/theme.el")

Centaur Tabs

  
(load-file "~/.emacs.d/elisp/GUI/centaurtabs.el")

Treemacs

(load-file "~/.emacs.d/elisp/GUI/treemacs.el")

Dashboard

 
(load-file "~/.emacs.d/elisp/GUI/dashboard.el")

Modeline

(load-file "~/.emacs.d/elisp/GUI/modeline.el")

Font

(load-file "~/.emacs.d/elisp/GUI/font.el")

Display

Number

(load-file "~/.emacs.d/elisp/GUI/displaynumber.el")