Skip to content

Instantly share code, notes, and snippets.

@ebragaparah
Last active November 17, 2020 22:15
Show Gist options
  • Save ebragaparah/0ad07aa0e8a52b394291fdc281212c08 to your computer and use it in GitHub Desktop.
Save ebragaparah/0ad07aa0e8a52b394291fdc281212c08 to your computer and use it in GitHub Desktop.
my emacs settings
(setq inhibit-startup-message t)
(setq inhibit-splash-screen t)
(tool-bar-mode -1)
(menu-bar-mode -1)
(setq tab-width 2)
(setq indent-tabs-mode nil)
(global-linum-mode t)
;; load theme
(load "~/.emacs.d/themes/kingsajz-theme.el")
;; melpa config
(require 'package)
(setq package-enable-at-startup nil) ;; disable startup activation
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/"))
(package-initialize)
(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 (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 'arrow)))
:bind (("C-\\" . 'neotree-toggle))) ;; the same as atom editor
;; new aliases keys
(global-set-key (kbd "C-<tab>") 'other-window)
(global-set-key (kbd "M-<down>") 'enlarge-window)
(global-set-key (kbd "M-<up>") 'shrink-window)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment