Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
E
emacs-config
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
Container Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
buildfunthings
emacs-config
Commits
4f2660f3
Commit
4f2660f3
authored
Nov 15, 2016
by
Arjen Wiersma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some small improvements to the setup
parent
058bad92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
64 additions
and
37 deletions
+64
-37
loader.org
loader.org
+64
-37
No files found.
loader.org
View file @
4f2660f3
...
...
@@ -187,43 +187,54 @@ Bookmarks are very useful for quickly jumping around files.
#+BEGIN_SRC emacs-lisp
(use-package counsel :ensure t)
(use-package swiper
(use-package counsel
:ensure t
:bind
(("M-x" . counsel-M-x)
("M-y" . counsel-yank-pop)
:map ivy-minibuffer-map
("M-y" . ivy-next-line)))
(use-package swiper
:pin melpa-stable
:ensure t
:bind*
(("C-s" . swiper)
("C-c C-r" . ivy-resume)
("C-x C-f" . counsel-find-file)
("C-c h f" . counsel-describe-function)
("C-c h v" . counsel-describe-variable)
("C-c i u" . counsel-unicode-char)
("M-i" . counsel-imenu)
("C-c g" . counsel-git)
("C-c j" . counsel-git-grep)
("C-c k" . counsel-ag)
("C-c l" . scounsel-locate))
:config
(progn
(ivy-mode 1)
(setq ivy-use-virtual-buffers t)
(define-key read-expression-map (kbd "C-r") #'counsel-expression-history)
(ivy-set-actions
'counsel-find-file
'(("d" (lambda (x) (delete-file (expand-file-name x)))
"delete"
)))
(ivy-set-actions
'ivy-switch-buffer
'(("k"
(lambda (x)
(kill-buffer x)
(ivy--reset-state ivy-last))
"kill")
("j"
ivy--switch-buffer-other-window-action
"other window")))))
(use-package counsel-projectile
:ensure t
:bind*
(("C-s" . swiper)
("C-c C-r" . ivy-resume)
("M-x" . counsel-M-x)
("C-x C-f" . counsel-find-file)
("C-c h f" . counsel-describe-function)
("C-c h v" . counsel-describe-variable)
("C-c i u" . counsel-unicode-char)
("M-i" . counsel-imenu)
("C-c g" . counsel-git)
("C-c j" . counsel-git-grep)
("C-c k" . counsel-ag)
("C-c l" . scounsel-locate))
:config
(progn
(ivy-mode 1)
(setq ivy-use-virtual-buffers t)
(define-key read-expression-map (kbd "C-r") #'counsel-expression-history)
(ivy-set-actions
'counsel-find-file
'(("d" (lambda (x) (delete-file (expand-file-name x)))
"delete"
)))
(ivy-set-actions
'ivy-switch-buffer
'(("k"
(lambda (x)
(kill-buffer x)
(ivy--reset-state ivy-last))
"kill")
("j"
ivy--switch-buffer-other-window-action
"other window")))))
(counsel-projectile-on))
(use-package ivy-hydra :ensure t)
#+END_SRC
...
...
@@ -358,7 +369,7 @@ Install dictionaries from the [[https://addons.mozilla.org/en-us/firefox/languag
(use-package ace-window
:ensure t
:config
(global-set-key (kbd "C-
c w
") 'ace-window))
(global-set-key (kbd "C-
x o
") 'ace-window))
(use-package ace-jump-mode
:ensure t
...
...
@@ -751,6 +762,7 @@ sign.
(add-hook 'lisp-mode-hook #'enable-paredit-mode)
(add-hook 'lisp-interaction-mode-hook #'enable-paredit-mode)
(add-hook 'scheme-mode-hook #'enable-paredit-mode)
:bind (("C-c d" . paredit-forward-down))
)
;; Ensure paredit is used EVERYWHERE!
...
...
@@ -818,6 +830,11 @@ Magit is the only thing you need when it comes to Version Control (Git)
(use-package magit
:ensure t
:bind (("C-c m" . magit-status)))
(use-package magit-gitflow
:ensure t
:config
(add-hook 'magit-mode-hook 'turn-on-magit-gitflow))
#+END_SRC
Display the buffer state in the fringe.
...
...
@@ -878,7 +895,7 @@ supporting modules.
;; insert keybinding setup here
))
(cljr-add-keybindings-with-prefix "C-c C-m")
(setq cljr-warn-on-eva
q
l nil)
(setq cljr-warn-on-eval nil)
:bind ("C-c '" . hydra-cljr-help-menu/body)
)
#+end_src
...
...
@@ -947,6 +964,8 @@ The web-mode is particularily good for editing HTML and JS files.
(defun my-web-mode-hook ()
"Hooks for Web mode."
(setq web-mode-enable-auto-closing t)
(setq web-mode-enable-auto-quoting t)
(setq web-mode-markup-indent-offset 2))
(add-hook 'web-mode-hook 'my-web-mode-hook))
...
...
@@ -1001,6 +1020,14 @@ The following are snippets, functions or other temporary code that I have found
(setq shr-color-visible-luminance-min 80)
#+END_SRC
#+BEGIN_SRC emacs-lisp
(use-package html-to-hiccup
:ensure t
:config
;;(define-key clojure-mode-map (kbd "H-h") 'html-to-hiccup-convert-region)
)
#+END_SRC
;; Experiments
** Mode line
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment