config: Fix indention by emacs auto indent
Use the indention that emacs applies when auto indenting.
This commit is contained in:
parent
579ccd16c1
commit
91ff02afe1
6 changed files with 54 additions and 54 deletions
|
@ -1,38 +1,38 @@
|
|||
;; magit
|
||||
(use-package magit
|
||||
:ensure t
|
||||
:init
|
||||
;; (taken from :open https://r0tty.org/git/dotfiles/emacs/tree/.emacs.d/config/development.el)
|
||||
(defun vcsh (repo)
|
||||
"Invoke magit on a vcsh repo. This requires an appropriate entry in `tramp-methods'."
|
||||
(interactive (let ((repos (delq nil
|
||||
(mapcar #'(lambda (name)
|
||||
(if (string-match ".git$" name)
|
||||
(substring name 0 -4)
|
||||
nil))
|
||||
(directory-files "~/.config/vcsh/repo.d")))))
|
||||
(list (completing-read "Repository: " repos nil t))))
|
||||
(magit-status-internal (format "/vcsh:%s:" repo)))
|
||||
:config
|
||||
;; Turn on flyspell when writing commit messages
|
||||
(add-hook 'git-commit-setup-hook 'git-commit-turn-on-flyspell))
|
||||
:ensure t
|
||||
:init
|
||||
;; (taken from :open https://r0tty.org/git/dotfiles/emacs/tree/.emacs.d/config/development.el)
|
||||
(defun vcsh (repo)
|
||||
"Invoke magit on a vcsh repo. This requires an appropriate entry in `tramp-methods'."
|
||||
(interactive (let ((repos (delq nil
|
||||
(mapcar #'(lambda (name)
|
||||
(if (string-match ".git$" name)
|
||||
(substring name 0 -4)
|
||||
nil))
|
||||
(directory-files "~/.config/vcsh/repo.d")))))
|
||||
(list (completing-read "Repository: " repos nil t))))
|
||||
(magit-status-internal (format "/vcsh:%s:" repo)))
|
||||
:config
|
||||
;; Turn on flyspell when writing commit messages
|
||||
(add-hook 'git-commit-setup-hook 'git-commit-turn-on-flyspell))
|
||||
|
||||
;; use ripgrep in emacs
|
||||
(use-package deadgrep
|
||||
:ensure t
|
||||
:bind ("M-s d" . deadgrep))
|
||||
:ensure t
|
||||
:bind ("M-s d" . deadgrep))
|
||||
|
||||
;; paredit
|
||||
(use-package paredit
|
||||
:ensure t
|
||||
:config
|
||||
(autoload 'enable-paredit-mode "paredit" "Turn on pseudo-structural editing of Lisp code." t)
|
||||
(add-hook 'emacs-lisp-mode-hook #'enable-paredit-mode)
|
||||
(add-hook 'eval-expression-minibuffer-setup-hook #'enable-paredit-mode)
|
||||
(add-hook 'ielm-mode-hook #'enable-paredit-mode)
|
||||
(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))
|
||||
:ensure t
|
||||
:config
|
||||
(autoload 'enable-paredit-mode "paredit" "Turn on pseudo-structural editing of Lisp code." t)
|
||||
(add-hook 'emacs-lisp-mode-hook #'enable-paredit-mode)
|
||||
(add-hook 'eval-expression-minibuffer-setup-hook #'enable-paredit-mode)
|
||||
(add-hook 'ielm-mode-hook #'enable-paredit-mode)
|
||||
(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))
|
||||
|
||||
;; Hack to show only files known to git inside dired; needs the
|
||||
;; `git-find' shell script shim (taken from :open https://r0tty.org/git/dotfiles/emacs/tree/.emacs.d/config/development.el)
|
||||
|
@ -53,6 +53,6 @@
|
|||
|
||||
;; language server
|
||||
(use-package lsp-mode
|
||||
:ensure t
|
||||
:config
|
||||
(add-hook 'rust-mode-hook 'lsp-deferred))
|
||||
:ensure t
|
||||
:config
|
||||
(add-hook 'rust-mode-hook 'lsp-deferred))
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
(use-package pinentry
|
||||
:init
|
||||
(setq epa-pinentry-mode 'loopback))
|
||||
:init
|
||||
(setq epa-pinentry-mode 'loopback))
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
(use-package org
|
||||
:ensure t
|
||||
:init (setq org-export-backends '(ascii html icalendar latex odt beamer)))
|
||||
:ensure t
|
||||
:init (setq org-export-backends '(ascii html icalendar latex odt beamer)))
|
||||
|
||||
(setq org-directory "~/org")
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
(use-package ivy-pass
|
||||
:ensure t
|
||||
:init
|
||||
;; from https://github.com/ecraven/ivy-pass/blob/master/ivy-pass.el
|
||||
(setq password-store-password-length 32))
|
||||
:ensure t
|
||||
:init
|
||||
;; from https://github.com/ecraven/ivy-pass/blob/master/ivy-pass.el
|
||||
(setq password-store-password-length 32))
|
||||
|
||||
;; configure ivy-pass key binding
|
||||
(global-set-key [?\C-x ?p] 'ivy-pass)
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
(use-package cargo
|
||||
:ensure t
|
||||
:config
|
||||
;; enable cargo keybindings
|
||||
(add-hook 'rust-mode-hook 'cargo-minor-mode))
|
||||
:ensure t
|
||||
:config
|
||||
;; enable cargo keybindings
|
||||
(add-hook 'rust-mode-hook 'cargo-minor-mode))
|
||||
|
||||
(use-package rust-mode
|
||||
:ensure t
|
||||
:config
|
||||
;; format code when saving
|
||||
(setq rust-format-on-save t))
|
||||
:ensure t
|
||||
:config
|
||||
;; format code when saving
|
||||
(setq rust-format-on-save t))
|
||||
|
||||
(use-package flycheck-rust :ensure t)
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
(use-package tramp
|
||||
:config
|
||||
(setq tramp-default-method "ssh")
|
||||
(add-to-list 'tramp-methods '("vcsh"
|
||||
(tramp-login-program "vcsh")
|
||||
(tramp-login-args (("enter")
|
||||
("%h")))
|
||||
(tramp-remote-shell "/bin/sh")
|
||||
(tramp-remote-shell-args ("-c")))))
|
||||
:config
|
||||
(setq tramp-default-method "ssh")
|
||||
(add-to-list 'tramp-methods '("vcsh"
|
||||
(tramp-login-program "vcsh")
|
||||
(tramp-login-args (("enter")
|
||||
("%h")))
|
||||
(tramp-remote-shell "/bin/sh")
|
||||
(tramp-remote-shell-args ("-c")))))
|
||||
|
|
Loading…
Reference in a new issue