{"action":"created","issue":{"url":"https://api.github.com/repos/jwiegley/use-package/issues/675","repository_url":"https://api.github.com/repos/jwiegley/use-package","labels_url":"https://api.github.com/repos/jwiegley/use-package/issues/675/labels{/name}","comments_url":"https://api.github.com/repos/jwiegley/use-package/issues/675/comments","events_url":"https://api.github.com/repos/jwiegley/use-package/issues/675/events","html_url":"https://github.com/jwiegley/use-package/issues/675","id":321251034,"number":675,"title":"Using use-package without using packages","user":{"login":"nickgarber","id":2222960,"avatar_url":"https://avatars2.githubusercontent.com/u/2222960?v=4","gravatar_id":"","url":"https://api.github.com/users/nickgarber","html_url":"https://github.com/nickgarber","followers_url":"https://api.github.com/users/nickgarber/followers","following_url":"https://api.github.com/users/nickgarber/following{/other_user}","gists_url":"https://api.github.com/users/nickgarber/gists{/gist_id}","starred_url":"https://api.github.com/users/nickgarber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickgarber/subscriptions","organizations_url":"https://api.github.com/users/nickgarber/orgs","repos_url":"https://api.github.com/users/nickgarber/repos","events_url":"https://api.github.com/users/nickgarber/events{/privacy}","received_events_url":"https://api.github.com/users/nickgarber/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-05-08T16:08:46Z","updated_at":"2018-05-12T21:40:23Z","closed_at":"2018-05-10T03:36:39Z","author_association":"NONE","body":"Is it possible to use `use-package` to manage configuration generically, without operating on a particular package?\r\n\r\nIt looks like maybe this is already possible? (Example from documentation)\r\n```\r\n;; Completely hide visual-line-mode and change auto-fill-mode to \" AF\".\r\n(use-package emacs\r\n  :delight\r\n  (auto-fill-function \" AF\")\r\n  (visual-line-mode))\r\n```\r\n\r\nI think of `use-package` forms as roughly analogous to [unit files](https://www.freedesktop.org/software/systemd/man/systemd.unit.html). They handle registering the load-path, dependencies, key-bindings, hooks, pre-/post- configs, and so forth. \r\n\r\n`use-package` provides great tooling for keeping configuration organized, even when not directly involving a package manager.\r\n"},"comment":{"url":"https://api.github.com/repos/jwiegley/use-package/issues/comments/388585013","html_url":"https://github.com/jwiegley/use-package/issues/675#issuecomment-388585013","issue_url":"https://api.github.com/repos/jwiegley/use-package/issues/675","id":388585013,"user":{"login":"nickgarber","id":2222960,"avatar_url":"https://avatars2.githubusercontent.com/u/2222960?v=4","gravatar_id":"","url":"https://api.github.com/users/nickgarber","html_url":"https://github.com/nickgarber","followers_url":"https://api.github.com/users/nickgarber/followers","following_url":"https://api.github.com/users/nickgarber/following{/other_user}","gists_url":"https://api.github.com/users/nickgarber/gists{/gist_id}","starred_url":"https://api.github.com/users/nickgarber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickgarber/subscriptions","organizations_url":"https://api.github.com/users/nickgarber/orgs","repos_url":"https://api.github.com/users/nickgarber/repos","events_url":"https://api.github.com/users/nickgarber/events{/privacy}","received_events_url":"https://api.github.com/users/nickgarber/received_events","type":"User","site_admin":false},"created_at":"2018-05-12T21:40:23Z","updated_at":"2018-05-12T21:40:23Z","author_association":"NONE","body":"What I'd really like to do is modularize my config into discrete units that\nare provided as named features and then coerce these units into the\nexpressive and completeness and simplicity of the use-package form.\n\nIf this is possible and sane, I'd next like to know if it's possible to use\nthis organizational approach for multiple use-package forms in a single\nfile?\n\nThanks very much for your illuminating responses. Appreciate it!\n\nOn Thu, May 10, 2018, 12:47 Radon Rosborough <notifications@github.com>\nwrote:\n\n> You can certainly put one use-package form inside another. People do that\n> all the time, e.g. this example from the README:\n>\n> (use-package color-moccur\n>   :commands (isearch-moccur isearch-all)\n>   :bind ((\"M-s O\" . moccur)\n>          :map isearch-mode-map\n>          (\"M-o\" . isearch-moccur)\n>          (\"M-O\" . isearch-moccur-all))\n>   :init\n>   (setq isearch-lazy-highlight t)\n>   :config\n>   (use-package moccur-edit))\n>\n> Is that what you mean?\n> ------------------------------\n>\n> You should really think of (use-package foo ...) as (with-eval-after-load\n> 'foo ...) with extra features. That helps me reason about its appropriate\n> usage.\n>\n> —\n> You are receiving this because you modified the open/close state.\n>\n>\n> Reply to this email directly, view it on GitHub\n> <https://github.com/jwiegley/use-package/issues/675#issuecomment-388112646>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/ACHrcGNslI8RYGWW6h8NdfX08VjiTGxxks5txG8ggaJpZM4T27Pj>\n> .\n>\n"}}
{"actor":{"display_login":"nickgarber"}}