emacs - Remove progn from use-package
This commit is contained in:
parent
936ff6b687
commit
7d698ebb14
1 changed files with 14 additions and 14 deletions
16
emacs/.emacs
16
emacs/.emacs
|
@ -260,27 +260,27 @@
|
||||||
(use-package ivy
|
(use-package ivy
|
||||||
:ensure t
|
:ensure t
|
||||||
:demand t
|
:demand t
|
||||||
:config (progn
|
:config
|
||||||
(ivy-mode 1)
|
(ivy-mode 1)
|
||||||
(setq ivy-use-virtual-buffers t)
|
(setq ivy-use-virtual-buffers t)
|
||||||
(setq ivy-count-format "(%d/%d) ")
|
(setq ivy-count-format "(%d/%d) ")
|
||||||
(advice-add 'imenu :before 'my/save-imenu-jump)
|
(advice-add 'imenu :before 'my/save-imenu-jump)
|
||||||
(define-key ivy-minibuffer-map (kbd "<C-return>") 'ivy-immediate-done)))
|
(define-key ivy-minibuffer-map (kbd "<C-return>") 'ivy-immediate-done))
|
||||||
|
|
||||||
(use-package counsel
|
(use-package counsel
|
||||||
:ensure t
|
:ensure t
|
||||||
:demand t
|
:demand t
|
||||||
:config (progn
|
:config
|
||||||
(global-set-key (kbd "C-c l") 'counsel-locate)
|
(global-set-key (kbd "C-c l") 'counsel-locate)
|
||||||
(global-set-key (kbd "C-c m") 'counsel-imenu)
|
(global-set-key (kbd "C-c m") 'counsel-imenu)
|
||||||
(global-set-key (kbd "C-c _") 'counsel-git-grep)))
|
(global-set-key (kbd "C-c _") 'counsel-git-grep))
|
||||||
|
|
||||||
;; Quickly open external terminal
|
;; Quickly open external terminal
|
||||||
(use-package terminal-here
|
(use-package terminal-here
|
||||||
:ensure t
|
:ensure t
|
||||||
:demand t
|
:demand t
|
||||||
:config (progn
|
:config
|
||||||
(global-set-key (kbd "C-x t") #'terminal-here-launch)))
|
(global-set-key (kbd "C-x t") #'terminal-here-launch))
|
||||||
|
|
||||||
;; swiper
|
;; swiper
|
||||||
(use-package swiper
|
(use-package swiper
|
||||||
|
@ -342,8 +342,8 @@
|
||||||
;; tabbing (doesn't really work yet)
|
;; tabbing (doesn't really work yet)
|
||||||
(setq-default tab-width 4)
|
(setq-default tab-width 4)
|
||||||
(setq-default LateX-indent-level 4)
|
(setq-default LateX-indent-level 4)
|
||||||
(add-hook 'latex-mode-hook (progn
|
(add-hook 'latex-mode-hook
|
||||||
(setq indent-tabs-mode t)))
|
(lambda () (setq indent-tabs-mode t)))
|
||||||
|
|
||||||
;; Activate line numbers
|
;; Activate line numbers
|
||||||
(global-linum-mode t)
|
(global-linum-mode t)
|
||||||
|
|
Loading…
Reference in a new issue