{"action":"closed","issue":{"url":"https://api.github.com/repos/wasamasa/eyebrowse/issues/43","labels_url":"https://api.github.com/repos/wasamasa/eyebrowse/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/wasamasa/eyebrowse/issues/43/comments","events_url":"https://api.github.com/repos/wasamasa/eyebrowse/issues/43/events","html_url":"https://github.com/wasamasa/eyebrowse/issues/43","id":114347191,"number":43,"title":"Command to (not interactively) rename window configuration","user":{"login":"Andre0991","id":7083061,"avatar_url":"https://avatars.githubusercontent.com/u/7083061?v=3","gravatar_id":"","url":"https://api.github.com/users/Andre0991","html_url":"https://github.com/Andre0991","followers_url":"https://api.github.com/users/Andre0991/followers","following_url":"https://api.github.com/users/Andre0991/following{/other_user}","gists_url":"https://api.github.com/users/Andre0991/gists{/gist_id}","starred_url":"https://api.github.com/users/Andre0991/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Andre0991/subscriptions","organizations_url":"https://api.github.com/users/Andre0991/orgs","repos_url":"https://api.github.com/users/Andre0991/repos","events_url":"https://api.github.com/users/Andre0991/events{/privacy}","received_events_url":"https://api.github.com/users/Andre0991/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-30T20:10:51Z","updated_at":"2015-11-20T21:27:03Z","closed_at":"2015-11-20T21:27:03Z","body":"I would like to automate the creation of window configurations.\r\n\r\nThis is useful because I try to follow a routine and so, for example, everyday I study a bit of Emacs Lisp. When I do that, I create a specific window configuration: a scratch buffer, a `.org` buffer with my annotations and a the Emacs Lisp Manual.\r\n\r\nOf course, I don't want to create and resize the windows every time so I created a function that creates this specific window configuration:\r\n\r\n```lisp\r\n  (defun window-group-study-emacs-lisp ()\r\n    (interactive)\r\n    (split-window-right-and-focus)\r\n    (split-window-vertically)\r\n    (shrink-window-horizontally 10)\r\n    (enlarge-window 10)\r\n    (find-file \"~/Dropbox/ciencia_da_computacao/emacs_lisp.org\")\r\n    (evil-window-down 1)\r\n    (switch-to-buffer \"*scratch*\")\r\n    (emacs-lisp-mode)\r\n    (evil-window-left 1)\r\n    ;; TODO: (bookmark-jump emacs-lisp-intro)\r\n    )\r\n```\r\n\r\nObviously, I wouldn't need this if I had Emacs open all the time, but sometimes I restart it to test some stuff and then everything is lost.\r\n\r\nI created several functions like the above.\r\n\r\nNow, what I would like to automate is the creation of `eyebrowse` window configurations and tag them when I started Emacs.\r\n\r\nSomething like\r\n\r\n```lisp\r\n  ;; eyebrowse\r\n  (defun start-all-eyebrowse-workspaces ()\r\n    ;; study lisp workspace\r\n    (eyebrowse-switch-to-window-config-1)\r\n    (window-group-study-emacs-lisp)\r\n    (eyebrowse-rename-window-config \"Emacs Lisp\")\r\n\r\n    ;; study blah\r\n    (eyebrowse-switch-to-window-config-2)\r\n    (window-group-study-blah)\r\n    (eyebrowse-rename-window-config \"Blah\")\r\n\r\n    ;; etc\r\n    )\r\n```\r\n\r\nCurrently, this is not possible because `eyebrowse-rename-window-config` has to be called interactively. \r\n\r\nAdditionally, it would be nice to have a kind of `eyebrowse-create-new-window-config` function that doesn't depend on any number. It would make it cleaner to adjust the function that creates all window configurations and it would be handy in creating new ones that I use just sporadically. For example, I could a function to create and tag a workspace that I use just on weekends. It would be the `n+1` workspace, where `n` is the number of workspaces before calling it.\r\n\r\nThanks.\r\n"}}