Last active
January 9, 2020 22:44
-
-
Save neppramod/bd229c6123f03b8b9851355b41417a23 to your computer and use it in GitHub Desktop.
My Config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(prelude-mode 1) | |
(scroll-bar-mode -1) | |
(eyebrowse-mode 1) | |
(menu-bar-mode -1) | |
(desktop-save-mode 1) | |
(global-linum-mode 0) | |
(setq whitespace-line-column 250) ;; Longer whitespace | |
(setq bookmark-save-flag 1) ; everytime bookmark is changed, automatically save | |
(setq recentf-exclude '("/var/folders/ww/")) ;; Remove from recentf | |
(setq-default sp-escape-quotes-after-insert nil) ;; Escape quotes properly | |
(set-frame-font "Hack 12" nil t) ;; Font | |
(add-hook 'java-mode-hook (lambda () (setq c-default-style "bsd"))) | |
;; Build java file | |
(defun java-build () | |
(interactive) | |
(shell-command (concat "javac " buffer-file-name))) | |
(defun java-run() | |
(interactive) | |
(async-shell-command (concat " java " (file-name-base buffer-file-name))) | |
(other-window 1) | |
) | |
;; Multiple cursors | |
(global-set-key (kbd "C-x M-e") 'mc/edit-lines) | |
;; C-x M-c - compile | |
(global-set-key (kbd "C-x M-c") 'compile) | |
(global-set-key (kbd "C-x M-m") 'muban-apply) | |
;; Org Mode | |
(setq org-default-notes-file "~/Dropbox/apps/mobileorg/mobileorg.org") | |
(global-set-key (kbd "C-c c") 'org-capture) | |
(global-set-key (kbd "s-t") 'shell-pop) | |
(global-set-key (kbd "s-;") 'replace-regexp) | |
(global-set-key (kbd "s-1") 'java-build) | |
(global-set-key (kbd "s-2") 'java-run) | |
(global-set-key (kbd "s-b") 'buffer-menu) | |
(global-set-key (kbd "s-4") 'dired) | |
(global-set-key (kbd "s-0") 'delete-window) | |
(global-set-key (kbd "s-9") 'delete-other-windows) | |
(global-set-key (kbd "s-8") 'delete-other-frames) | |
;; Dumb jump | |
(global-set-key (kbd "C-M-]") 'dumb-jump-go) | |
(global-set-key (kbd "C-M-[") 'dumb-jump-back) | |
(global-set-key (kbd "C-M-,") 'dumb-jump-quick-look) | |
;; s-l -> goto-line, s-f -> isearch, s-g -> go through all found in isearch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment