{"id":14008622,"url":"https://github.com/localvoid/gnome-shell-emacsmanager","last_synced_at":"2025-04-11T21:14:03.931Z","repository":{"id":3635032,"uuid":"4701733","full_name":"localvoid/gnome-shell-emacsmanager","owner":"localvoid","description":"Gnome Shell extension to manage emacs server instances","archived":false,"fork":false,"pushed_at":"2019-03-20T01:19:18.000Z","size":135,"stargazers_count":25,"open_issues_count":3,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-11T21:13:57.742Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/localvoid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-06-18T14:20:11.000Z","updated_at":"2022-02-02T18:50:32.000Z","dependencies_parsed_at":"2022-08-24T13:39:35.938Z","dependency_job_id":null,"html_url":"https://github.com/localvoid/gnome-shell-emacsmanager","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localvoid%2Fgnome-shell-emacsmanager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localvoid%2Fgnome-shell-emacsmanager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localvoid%2Fgnome-shell-emacsmanager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localvoid%2Fgnome-shell-emacsmanager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/localvoid","download_url":"https://codeload.github.com/localvoid/gnome-shell-emacsmanager/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248480427,"owners_count":21110937,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-10T11:01:56.657Z","updated_at":"2025-04-11T21:14:03.908Z","avatar_url":"https://github.com/localvoid.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Emacs Manager [Gnome Shell](https://wiki.gnome.org/Projects/GnomeShell) [extension](https://extensions.gnome.org/extension/361/emacs-manager/)\n\n## Virtual Environment hooks\n\nSometimes it is useful to launch emacs with a predefined environment\nvariables (python\n[virtual environments](http://virtualenv.readthedocs.org/en/latest/),\ngo [workspaces](https://golang.org/doc/code.html), etc).\n\nTo preload environment variables, create a file `my-venv.sh` in the\nVirtual Environments directory `~/.emacs.d/virtualenv`, where you can\nput all initialization in a simple shell script.\n\nFor example, to activate python virtualenv, you can just use the\n`source` function.\n\n```sh\nsource ~/my-python-venv/bin/activate\nexport EXAMPLE_ENVIRONMENT_VAR=1\n```\n\nAnd next time when you start emacs server with the name `my-venv`, it\nwill preload your virtual environment.\n\n## desktop-save-mode\n\nSaving and restoring emacs sessions.\n\nCreate a new directory in your emacs folder\n\n```sh\n$ mkdir ~/.emacs.d/desktop\n```\n\nand add this to your `init.el` file\n\n```lisp\n(when (daemonp)\n  (defadvice desktop-restore-file-buffer\n    (around my-desktop-restore-file-buffer-advice)\n    \"Be non-interactive while starting a daemon.\"\n    (let ((noninteractive t))\n      ad-do-it))\n  (ad-activate 'desktop-restore-file-buffer)\n\n  (setq desktop-dirname             \"~/.emacs.d/desktop/\"\n        desktop-base-file-name      (concat (daemonp) \".desktop\")\n        desktop-base-lock-name      (concat (daemonp) \".lock\")\n        desktop-path                (list desktop-dirname)\n        desktop-save                t\n        desktop-files-not-to-save   \"^$\" ;reload tramp paths\n        desktop-load-locked-desktop t)\n  (desktop-save-mode 1))\n```\n\n## Connecting to remote servers\n\nTo connect to the remote server, you will need to copy server file to\nthe local `~/.emacs.d/server/` directory. This extension will\nautomatically detect the presence of server file and add button to\nlaunch emacsclient to the remote server.\n\n\u003e When you start a TCP Emacs server, Emacs creates a server file\n\u003e containing the TCP information to be used by emacsclient to connect\n\u003e to the server. The variable server-auth-dir specifies the directory\n\u003e containing the server file; by default, this is ~/.emacs.d/server/.\n\u003e\n\u003e [emacsclient Options](https://www.gnu.org/software/emacs/manual/html_node/emacs/emacsclient-Options.html)\n\n## Debugging\n\nIf there are problems with launching or killing emacs servers, you can\nlook at the log files, using journalctl.\n\n```sh\n$ journalctl _UID=`id -u`\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocalvoid%2Fgnome-shell-emacsmanager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flocalvoid%2Fgnome-shell-emacsmanager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocalvoid%2Fgnome-shell-emacsmanager/lists"}