Skip to content

Instantly share code, notes, and snippets.

@abeswz
Created April 12, 2020 17:28
Show Gist options
  • Save abeswz/23f99c84d1c823768b4445093ebb6c22 to your computer and use it in GitHub Desktop.
Save abeswz/23f99c84d1c823768b4445093ebb6c22 to your computer and use it in GitHub Desktop.
;; Remover boas vindas
(setq inhibit-startup-message t)
;; Remover Menus
(tool-bar-mode -1)
(menu-bar-mode -1)
;; Remover barra de rolagem
(scroll-bar-mode -1)
;; Numerando linhas
(global-linum-mode t)
;; Pacotes
(require 'package)
(setq package-enable-at-startup nil) ;; desabilitando inicializacao
(add-to-list 'package-archives
'("melpa" . "https://stable.melpa.org/packages/"))
(add-to-list 'package-archives
'("tromey" . "http://tromey.com/elpa/") t)
(add-to-list 'package-pinned-packages '(cider . "melpa-stable") t)
(add-to-list 'package-pinned-packages '(magit . "melpa-stable") t)
(package-initialize) ;; inicializando pacotes
;; Adicionando o use package caso nao exista
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(use-package try
:ensure t)
(use-package which-key
:ensure t
:config
(progn
(which-key-setup-side-window-right-bottom)
(which-key-mode)))
(use-package auto-complete
:ensure t
:init
(progn
(ac-config-default)
(global-auto-complete-mode t)))
(use-package all-the-icons
:ensure t)
(use-package neotree
:ensure t
:config
(progn
(setq neo-theme (if (display-graphic-p) 'icons 'arrows)))
:bind (("C-b" . 'neotree-toggle))) ;; atalho para abertura de toggle
(use-package ace-window
:ensure t
:bind (("C-x o" . ace-window)))
;; Atalhos
(global-set-key (kbd "C-<tab>")'other-window)
;; Adicionando Theme
(load-theme 'dracula t)
(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.
'(package-selected-packages
(quote
(dracula-theme ace-window all-the-icons neotree auto-complete which-key try use-package))))
(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.
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment