bmag / emacs-purpose

Manage Windows and Buffers According to Purposes
GNU General Public License v3.0
496 stars 23 forks source link

Redo configuration system, more flexible priorities #97

Closed bmag closed 7 years ago

bmag commented 8 years ago

Instead of organizing Purpose's configuration in user/extension/default priorities, organize the configuration in configuration sets, where each set has it's own priority and id. A priority is a number between 0 and 99, where 99 is the highest priority and 0 the lowest. An id is a symbol and should be unique. For backward compatibility and ease of use, purpose-add-user-purposes will use an entry with id user and priority 99, and purpose-add-extension-purposes will use an entry with the given id and priority 50. The default configuration will be stored as an entry with id default and priority 0.