summaryrefslogtreecommitdiff
path: root/completion-conf.el
AgeCommit message (Collapse)Author
2023-01-09completion: add functions to jump between minibuffer and completionsJSDurand
* common.el (durand-completion-goto-minibuffer): Go to the *Completions* buffer or the minibuffer, depending on whether we are *in the minibuffer or the *Completions* buffer and the target buffer *exists. * completion-conf.el (minibuffer-local-completion-map) (completion-list-mode-map): Bind the function in the right map.
2023-01-07emacs-29 changesJSDurand
These are some changes when I migrate to emacs version 29.
2022-01-26clear up after previewJSDurand
* completion-conf.el (durand-preview-exit-hook) (durand-open-completion-list-with-buffer-preview): I forgot to clear the mess after the preview is over. The result of this experiment is far from usable yet, of course.
2022-01-26experimenting with live previewsJSDurand
* completion-conf.el (durand-preview-in-completion-list): The function to call in the completion list buffer to preview the current candidate. (durand-propertize-buffer-for-completion-list): Give the texts necessary properties. (durand-open-completion-list-with-buffer-preview): Set up the completion list buffer for previewing. (durand-preview-keymap): A custom keymap that contains bindings for previewing buffers. (durand-read-buffer-with-preview-function): Use a custom function to read buffers, as the default one does not accept a keymap argument. (durand-switch-to-buffer-preview): Switch-to-buffer, but with previews.
2022-01-04C-n/p should also scroll to the completion list as wellJSDurand
* completion-conf.el (minibuffer-local-completion-map) (completion-list-mode-map): Bind C-n and C-p to move the cursor to the completion list buffer if the cursor is already at the bottom or the top of the minibuffer.
2021-12-26Use defalias rather than fsetJSDurand
* common.el (durand-display-in-one-window) (durand-completion-scroll-up-or-go-to-minibuffer) (intentionally-disabled-bind): * completion-conf.el (durand-completion-toggle-display): * eww-conf.el (global-map): defalias has the advantage that one can find the file of the definition from the help buffer while fset cannot.
2021-08-15* completion-conf.el (completions-format): one-columnJSDurand
2021-08-05fix: poor man' live upadtingJSDurand
* completion-conf.el (durand-minibuffer-respect-inhibit-advice) (minibuffer-message): Make sure this respects the value of `inhibit-message'. (durand-completion-display-after-change): Previously this will add a message at the end of the minibuffer after completing, so that the input becomes invalid. Now this problem is fixed.
2021-05-30completion-conf: Unbind space in completion mapsJSDurand
* completion-conf.el (minibuffer-local-completion-map) (minibuffer-local-must-match-map): Since typing space is quite common, it is not very convenient to use space to complete words, as the binding otherwise would.
2021-03-26Poor man's live update of completion candidatesJSDurand
* completion-conf.el (minibuffer-local-completion-map): (durand-completion-display-after-change): (durand-completion-toggle-display): This will toggle between live updating and not live updating.
2021-02-08Constantly growingJSDurand
A lot of improvements.
2021-01-29Change the directory to .emacs.d now.JSDurand
Now I don't have to use a special command to launch Emacs. And the configuration files are placed in the normal position now.
2021-01-24More custom functions and adjust for custom completion frameworkJSDurand
* 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.