From 2066e827155ae2893097360024ffd975166a44ef Mon Sep 17 00:00:00 2001 From: JSDurand Date: Sat, 23 Jan 2021 00:23:05 +0800 Subject: More custom functions and adjust for custom completion framework * LICENSE: Add GPLv3. * basic.el (durand-enlarge-window): (durand-shrink-window): (durand-enlarge-window-horizontally): (durand-shrink-window-horizontally): Now I can easily maximize or minimize windows. * comb/orderless-conf.el ("orderless"): Now I try to use my own completion framework. * common.el (durand-embark-scroll-down-or-go-to-completions): (durand-embark-scroll-up-or-go-to-completions): (durand-completion-scroll-down-or-go-to-minibuffer): (durand-completion-scroll-up-or-go-to-minibuffer): Move these functions here since they do not belong to the completion framework in my opinion. (register): (register-val-jump-to): Rewrite this method so that it does not have to ask me if I want to open a file while jumping. * completion-conf.el: My intended completion framework, which is still work in progress. * init.el ("comb/orderless-conf.el"): ("completion-conf.el"): Adjust things accordingly. ("durand-simple"): My custom functions for viewing and for opening things. * modeline.el (modeline-propertize): (modeline-format-minor-modes): (modeline-format-major-mode): Now the macro `modeline-propertize' won't override properties that it does not intend to define. This has the effect that the properties of the original constructs will go through and have effect. (modeline-format-main): Make sure the space has a positive length. (modeline-format-buffer-name): Make sure the length does not exceed half the width of the window. --- init.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'init.el') diff --git a/init.el b/init.el index 6fe37ad..f970516 100644 --- a/init.el +++ b/init.el @@ -129,10 +129,11 @@ If FUNCTION-NAME is already a valid function, this won't do anything." ;; (load-config "comb/comb.el") ;; (load-config "comb/comb-annotation.el") -;;; orderless +;;; Completion framework configurations ;; TODO: Write my own completion styles library -(load-config "comb/orderless-conf.el") +;; (load-config "comb/orderless-conf.el") +(load-config "completion-conf.el") ;;; dired configurations @@ -191,7 +192,8 @@ If FUNCTION-NAME is already a valid function, this won't do anything." (use-package "durand-simple" 'durand-simple (define-key global-map (vector ?\C-\M-\s) #'durand-simple-mark-dwim) - (define-key global-map (vector ?\C-o) #'durand-simple-open-line)) + (define-key global-map (vector ?\C-o) #'durand-simple-open-line) + (define-key global-map (vector ?\C-') #'durand-simple-insert-pair)) ;;; Searches -- cgit v1.2.3-18-g5258