Skip to content

Instantly share code, notes, and snippets.

@newbenhd
Created August 24, 2017 23:28
Show Gist options
  • Save newbenhd/6c0839b59040f9629581ca8981c95459 to your computer and use it in GitHub Desktop.
Save newbenhd/6c0839b59040f9629581ca8981c95459 to your computer and use it in GitHub Desktop.
(scroll-bar-mode -1)
(tool-bar-mode -1)
(menu-bar-mode -1)
(split-window-horizontally)
(setq frame-title-format
'("AnOnYmOuS - EnD Of wOrLd pArTy"))
(require 'package)
(setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/")
("marmalade" . "https://marmalade-repo.org/packages/")
("melpa" . "https://melpa.org/packages/")))
(package-initialize)
(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 (misterioso)))
'(org-agenda-files (quote ("~/uiuc/schedule.org")))
'(org-log-into-drawer t))
(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.
)
; Making emacs transparent
(set-frame-parameter (selected-frame) 'alpha '(90 . 30))
; evil: vim like
(require 'evil)
(evil-mode 1)
(global-linum-mode t)
; autopair: automatically pair braces and quotes like textmate
(require 'autopair)
(autopair-global-mode)
; auto-complete: intelligent auto-completion extension for emacs
(ac-config-default)
; make your own disctionary
(setq ac-user-dictionary '("blm2@illinois.edu" "hdlmorrison@gmail.com" "newben.hd@gmail.com"))
; undo-tree: treat undo history as a tree
(global-set-key (kbd "<f9>") 'undo-tree-visualize)
; ido: built-in, it helps navigate buffers and files
(require 'ido)
(ido-mode t)
; nyan-mode: Nyan cat shows position in current buffer in mode-line
(nyan-mode 1)
; neotree - A tree plugin like NerdTree for Vim
(add-hook 'neotree-mode-hook
(lambda ()
(define-key evil-normal-state-local-map (kbd "TAB") 'neotree-enter)
(define-key evil-normal-state-local-map (kbd "SPC") 'neotree-quick-look)
(define-key evil-normal-state-local-map (kbd "q") 'neotree-hide)
(define-key evil-normal-state-local-map (kbd "RET") 'neotree-enter)))
(neotree-show)
(defun irc ()
"Connect to the freenode"
(interactive)
(erc :server "chat.freenode.net"
:port 6667
:nick "white_knight"
:password "$SbQps7017! OR nil"))
; Guide-key - Displays available key bindings automatically and dynamically
(require 'guide-key)
(setq guide-key/guide-key-sequence '("C-x" "M-x"))
(guide-key-mode 1)
; bm - Visible bookmarks in buffer
(require 'bm)
(global-set-key (kbd "C-c j") 'bm-toggle)
(global-set-key (kbd "C-c k") 'bm-next)
(global-set-key (kbd "C-c h") 'bm-previous)
; buf-move - Easier way to move around buffers
(global-set-key (kbd "<M-up>") 'buf-move-up)
(global-set-key (kbd "<M-down>") 'buf-move-down)
(global-set-key (kbd "<M-left>") 'buf-move-left)
(global-set-key (kbd "<M-right>") 'buf-move-right)
(windmove-default-keybindings)
; gist - Clone source code on online
(require 'gist)
; org-mode
;; The following lines are always needed. Choose your own keys.
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cb" 'org-iswitchb)
(setq org-todo-keyword-faces
'(("TODO" . (:foreground "green" :weight bold))
("DONE" . (:foreground "cyan" :weight bold))
("WAITING". (:foreground "red" :weight bold))
("SOMEDAY" . (:foreground "gray" :weight bold))))
; dashboard - A startup screen extracted from spacemacs
(require 'dashboard)
(dashboard-setup-startup-hook)
(setq dashboard-banner-logo-title "Welcome, White_soldier")
(add-to-list 'dashboard-items '(agenda) t)
(setq org-directory "~/personal")
(setq org-default-notes-file "~/personal/organizer.org")
; Backups
(setq backup-directory-alist '(("." . "~/.emacs.d/backups")))
; having clock
(display-time-mode 1)
; helm-swoop: fast way to find things
(use-package helm-swoop
:bind
(("C-S-s" . helm-swoop)
("M-i" . helm-swoop)
("M-s s" . helm-swoop)
("M-s M-s" . helm-swoop)
("M-I" . helm-swoop-back-to-last-point)
("C-c M-i" . helm-multi-swoop)
("C-x M-i" . helm-multi-swoop-all)
)
:config
(progn
(define-key isearch-mode-map (kbd "M-i") 'helm-swoop-from-isearch)
(define-key helm-swoop-map (kbd "M-i") 'helm-multi-swoop-all-from-helm-swoop))
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment