Created
July 22, 2017 02:05
-
-
Save sudhirkhanger/02afa15437c1daf46f7e9261496bb5c5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
;; Added by Package.el. This must come before configurations of | |
;; installed packages. Don't delete this line. If you don't want it, | |
;; just comment it out by adding a semicolon to the start of the line. | |
;; You may delete these explanatory comments. | |
(package-initialize) | |
;; hide toolbar | |
;; | |
;; https://www.emacswiki.org/emacs/ToolBar#toc1 | |
(tool-bar-mode -1) | |
;; hide scrollbar | |
;; | |
;; https://www.emacswiki.org/emacs/ScrollBar | |
(scroll-bar-mode -1) | |
;; hide menubar | |
;; | |
;; https://www.emacswiki.org/emacs/MenuBar | |
(menu-bar-mode -1) | |
;; hide splash screen | |
;; | |
;; http://stackoverflow.com/a/744681/3034693 | |
(setq inhibit-startup-screen t) | |
;; hide scratch message | |
;; | |
;; https://stackoverflow.com/questions/1498258/how-do-i-change-the-scratch-message-in-emacs | |
(setq initial-scratch-message nil) | |
;; repository | |
;; | |
(require 'package) | |
(add-to-list 'package-archives | |
'("melpa" . "http://melpa.org/packages/")) | |
;; Darcula - Emacs theme inspired by IntelliJ's Darcula. | |
;; | |
;; https://gitlab.com/fommil/emacs-darcula-theme | |
(use-package darcula-theme | |
:ensure t | |
:config | |
;; your preferred main font face here | |
(set-frame-font "Source Code Pro-11.5")) | |
;; Change cursor to bar | |
;; | |
;; https://stackoverflow.com/questions/3670938/cursor-type-in-emacs | |
(set-default 'cursor-type 'bar) | |
;; https://www.emacswiki.org/emacs/ShowParenMode | |
;; | |
(show-paren-mode 1) | |
(setq show-paren-delay 0) | |
;; Automatically added | |
;; | |
(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. | |
'(default-frame-alist (quote ((fullscreen . maximized)))) | |
'(markdown-command "/usr/bin/pandoc") | |
'(package-selected-packages | |
(quote | |
(counsel markdown-mode org-journal wc-mode darcula-theme 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. | |
) | |
;; http://ergoemacs.org/emacs/emacs_long_line_wrap.html | |
(global-visual-line-mode 1) | |
;; scroll one line at a time (less "jumpy" than defaults) | |
;; https://www.emacswiki.org/emacs/SmoothScrolling | |
;; | |
(setq mouse-wheel-scroll-amount '(1 ((shift) . 1))) ;; one line at a time | |
(setq mouse-wheel-progressive-speed nil) ;; don't accelerate scrolling | |
(setq mouse-wheel-follow-mouse 't) ;; scroll window under mouse | |
(setq scroll-step 1) ;; keyboard scroll one line at a time | |
;; https://github.com/bastibe/org-journal | |
(require 'org-journal) | |
(setq org-journal-dir "/home/sudhir/Documents/Journals/Journal/") | |
;; https://github.com/bnbeckwith/wc-mode | |
;; Add the path to the repo | |
(add-to-list 'load-path "/home/sudhir/.emacs.d/pkg/wc-mode/") | |
(require 'wc-mode) | |
;; Suggested setting | |
(global-set-key "\C-cw" 'wc-mode) | |
;; https://stackoverflow.com/a/24620841/3034693 | |
(setq wc-modeline-format "%tw words") | |
;; http://jblevins.org/projects/markdown-mode/ | |
(use-package markdown-mode | |
:ensure t | |
:commands (markdown-mode gfm-mode) | |
:mode (("README\\.md\\'" . gfm-mode) | |
("\\.md\\'" . markdown-mode) | |
("\\.markdown\\'" . markdown-mode)) | |
;; :init (setq markdown-command "multimarkdown")) | |
:init (setq markdown-command "pandoc")) | |
;; https://github.com/abo-abo/swiper | |
(ivy-mode 1) | |
(setq ivy-use-virtual-buffers t) | |
(setq enable-recursive-minibuffers t) | |
(global-set-key "\C-s" 'swiper) | |
(global-set-key (kbd "C-c C-r") 'ivy-resume) | |
(global-set-key (kbd "<f6>") 'ivy-resume) | |
(global-set-key (kbd "M-x") 'counsel-M-x) | |
(global-set-key (kbd "C-x C-f") 'counsel-find-file) | |
(global-set-key (kbd "<f1> f") 'counsel-describe-function) | |
(global-set-key (kbd "<f1> v") 'counsel-describe-variable) | |
(global-set-key (kbd "<f1> l") 'counsel-find-library) | |
(global-set-key (kbd "<f2> i") 'counsel-info-lookup-symbol) | |
(global-set-key (kbd "<f2> u") 'counsel-unicode-char) | |
(global-set-key (kbd "C-c g") 'counsel-git) | |
(global-set-key (kbd "C-c j") 'counsel-git-grep) | |
(global-set-key (kbd "C-c k") 'counsel-ag) | |
(global-set-key (kbd "C-x l") 'counsel-locate) | |
(global-set-key (kbd "C-S-o") 'counsel-rhythmbox) | |
(define-key read-expression-map (kbd "C-r") 'counsel-expression-history) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment