dotfiles

Settings and scripts
git clone git://git.konyahin.xyz/dotfiles
Log | Files | Refs | LICENSE

commit 94085f560fb9a14d78956fe2560935ad76608e61
parent 14cbb5f7a3226efdd4d36a30453f79748cf8efee
Author: Anton Konyahin <me@konyahin.xyz>
Date:   Sat,  3 Jun 2023 09:40:57 +0300

emacs: install packages from config, fix which-key delay

Diffstat:
Memacs/.emacs.d/init.el | 14++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el @@ -21,12 +21,12 @@ (setq-default abbrev-mode t) (setq save-abbrevs 'silently) -;; dired settings -(setq dired-listing-switches "-lap") - ;; isearch settings (setq search-whitespace-regexp ".*") +;; dired settings +(setq dired-listing-switches "-lap") + (defun knh-dired-find-file-other-frame () "Open file in dired and move it in another emacs frame" (interactive) @@ -45,6 +45,7 @@ (require 'package) (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t) +(package-install 'markdown-mode) (require 'markdown-mode) (add-hook 'markdown-mode-hook 'auto-fill-mode) (add-hook 'markdown-mode-hook 'flyspell-mode) @@ -64,6 +65,7 @@ (define-key markdown-mode-map (kbd "M-<up>") 'markdown-previous-visible-heading) (define-key markdown-mode-map (kbd "M-<down>") 'markdown-next-visible-heading) +(package-install 'howm) (require 'howm) (setq howm-file-name-format "%Y-%m-%d-%H%M%S.md") (setq howm-template "# %title%cursor\n\n%file\n\n") @@ -79,9 +81,11 @@ (fido-mode t) +(package-install 'expand-region) (require 'expand-region) (global-set-key (kbd "C-=") 'er/expand-region) +(package-install 'restclient) (require 'restclient) (require 'misc) (require 'hideshow) @@ -102,8 +106,10 @@ (defalias 'pmake 'eshell/port-make) (defalias 'pupdate 'eshell/port-update-patches) +(package-install 'which-key) (require 'which-key) -(which-key-mode) +(setq which-key-idle-delay 0.5) +(which-key-mode t) ;; custom functions and key bindings (global-set-key (kbd "M-o") 'other-window)