Skip to content

Question about organization of your files #32

@gcantieni

Description

@gcantieni

Hi there, just a subjective question about organization:

It seems that the adoption of use-package often has people writing their configs in the style of:

(use-package foo
  ;; bindings for foo
  ;; hooks for foo)

(use-package bar
  ;; bindings for bar
  ;; hooks for bar)

Whereas you generally seem to prefer

;; init.el
(use-package foo)
(use-package bar)

;; keybindings.el
bindings for foo
bindings for bar

;; hooks.el
hooks for foo
hooks for bar

I was wondering why you favor this organization scheme? Does it offer performance advantages? Is it easier to wrap your head around? Does it scale better? I tried organizing it this way but found that it sometimes complicated things because I would, for example, have to use an eval-after-load in keybindings.el to avoid an error about a keymap that doesn't exist yet. Perhaps you just handle this with some autoloads?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions