dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 49260ca050203c003ece5ecced4e1da04eadefd6
parent cc88058de8ac9353834b375d28933c2cc1c483bb
Author: Yuval Langer <yuval.langer@gmail.com>
Date:   Sat, 10 Dec 2016 00:10:48 +0200

Add all sorts of Using Emacs by mzamansky advices

Diffstat:
Memacs/emacs | 91+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------
1 file changed, 85 insertions(+), 6 deletions(-)

diff --git a/emacs/emacs b/emacs/emacs @@ -1,16 +1,93 @@ +(setq inhibit-startup-message t) + (require 'package) -(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/")) +(setq package-enable-at-startup nil) +(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 evil + :ensure t + :config (evil-mode 1)) + +(use-package helm + :ensure t + :config (global-set-key (kbd "M-x") 'helm-M-x)) + +(use-package org-bullets + :ensure t + :config + (add-hook 'org-mode-hook (lambda () (org-bullets-mode 1)))) + +(use-package ob-ipython + :ensure t) + +(use-package tabbar + :ensure t + :config + (tabbar-mode 1)) + +(use-package ace-window + :ensure t + :init + (progn + (global-set-key [remap other-window] 'ace-window) + (custom-set-faces + '(aw-leading-char-face + ((t (:inherit ace-jump-face-foreground :height 3.0))))))) + +(use-package swiper + :ensure t + :config + (progn + (ivy-mode 1) + (setq ivy-use-virtual-buffers 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))) + +(winner-mode 1) +(windmove-default-keybindings) + +(setq ido-enable-flex-matching t) +(setq ido-everywhere t) -(evil-mode 1) +(ido-mode 1) +;(use-package elpy +; :ensure t +; :config (elpy-enable)) -(require 'helm-config) -(global-set-key (kbd "M-x") 'helm-M-x) +;(require 'helm-config) +;(org-babel-load-languages +; '((ipython . t))) -(elpy-enable) +(defalias 'list-buffers 'ibuffer-other-window) (custom-set-variables @@ -26,10 +103,12 @@ '(haskell-stylish-on-save t) '(haskell-tags-on-save t) '(indent-tabs-mode nil) + '(org-agenda-files (quote ("~/foo/orgmode/main.org"))) '(proof-autosend-enable t) '(proof-electric-terminator-enable t) '(proof-shell-quiet-errors nil) - '(python-check-command "flake8")) + '(python-check-command "flake8") + '(word-wrap 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.