summaryrefslogtreecommitdiff
path: root/ibuffer.el
AgeCommit message (Collapse)Author
2021-12-18ibuffer: protect buffersJSDurand
* ibuffer.el (durand-default-clear-passlist, durand-clear-passlist): Add a default value variable. (durand-reset-clearlist): Add a function to reset since we are starting to manipulate this variable. (durand-born-equal): Buffer-OR-Name equal. (durand-ibuffer-clear): Make sure the dashboard buffer is correctly recentered, even if it is not displayed right after the clearing operation. (durand-ibuffer-reset-marks): Reset the mark of the current line if this mark is added "automagically" by the macro which defines an ibuffer operation. (durand-ibuffer-restore-mark-before-advice): Check if there are no marks before the operation. In this case a mark will be "automagically" added, and we need to remove that mark later. (ibuffer-do-protect): Protect marked buffers so that they will not be cleared automatically. (ibuffer-do-unprotect): Unprotect the buffers so we can clear them quickly again. (ibuffer-mode-map): Bind the operations. (durand-directory): Modify this filter so that it works correctly.
2021-12-11ibuffer: enable hl-line-mode in ibufferJSDurand
2021-08-09change: beautify the dashboard in durand-ibuffer-clearJSDurand
* ibuffer.el (durand-ibuffer-clear): Place the point at the last character and recenter to show the whole buffer nicely.
2021-08-09fix: durand-ibuffer-clearJSDurand
* ibuffer.el (durand-ibuffer-clear): Make the behaviour with a prefix argument respect the `durand-clear-passlist'. And the prefixed behaviour now restricts the range of deletion to the marked buffers, which is kind of the opposite of the original behaviour. The rationale is that we can easily toggle marks in ibuffer, and to delete marked buffers is a much more intuitive behaviour.
2021-08-08change: add a pass list and some filtersJSDurand
* ibuffer.el (dashboard-buffer-name): to be added to the pass list. (durand-clear-passlist): Buffer names listed in this variable will not be deleted automatically. (durand-ibuffer-clear): Do not delete those buffers whose names are a member of `durand-clear-passlist'. (durand-directory): a filter for matching files whose associated files are in a subdirectory of the qualifier. This needs more testing, though. (durand-bongo-set-filter): Add groups for C, ELisp, EWW, and Roman.
2021-06-02ibuffer: Fix a bug in deleting buffers.JSDurand
* ibuffer.el (durand-ibuffer-clear): I would like to delete those buffers that are not marked, but I wrote the opposite behaviour. This commit fixes the bug.
2021-06-01Add a key-binding to clear buffers in ibuffer.JSDurand
* ibuffer.el (durand-ibuffer-clear): This is my frequent operation. (ibuffer-mode-map): Bind to a key.
2021-05-20Fix a bug of switch-to-buffer-same-mode.JSDurand
* ibuffer.el (switch-to-buffer-same-mode): Fix a bug.
2021-05-20Add a function to switch to buffers of the same major modeJSDurand
* ibuffer.el (switch-to-buffer-same-mode): This turns out to be convenient, contrary to what I thought at first.
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.
2021-01-22Regular updatesJSDurand
In the course of configuring Emacs there are numerous changes to make. This is one regular step.
2021-01-09temporary stateJSDurand