What Is the Best Emacs Workspaces Plugin

What is the best Emacs workspaces plugin?

I use a combination of save-visited-files and workgroups. In fact, workgroups will probably do most of what you want by itself.

My config:

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; workgroups for windows

(setq wg-prefix-key (kbd "C-c z")
wg-no-confirm t
wg-file (concat emacs-persistence-directory "workgroups")
wg-use-faces nil
wg-switch-on-load nil)

(defun wg-load-default ()
"Run `wg-load' on `wg-file'."
(interactive)
(wg-load wg-file))

(defun wg-save-default ()
"Run `wg-save' on `wg-file'."
(interactive)
(when wg-list
(with-temp-message ""
(wg-save wg-file))))

(with-library 'workgroups
(define-key wg-map (kbd "C-l") 'wg-load-default)
(define-key wg-map (kbd "C-s") 'wg-save-default)
(workgroups-mode 1)
(add-hook 'auto-save-hook 'wg-save-default)
(add-hook 'kill-emacs-hook 'wg-save-default))

Save Frames for future sessions

Emacs 24.4 (which is not yet released) extends the Desktop feature of saving and restoring desktops (Emacs session state), to include frames and their positions, buffers (sometimes), etc.

You can obtain MS Windows executable builds of the development version of Emacs (what will become 24.4) here.

If you have an Emacs build that supports this, consult the Emacs manual, node Saving Emacs Sessions for more information.

Are there any good R object browsers?

The lsos() function shown in this SO questions is also a primitive object browser:

R> lsos()
Type Size Rows Columns
ls.objects function 11792 NA NA
lsos function 1112 NA NA
s numeric 824 100 NA
y numeric 184 20 NA
x numeric 56 3 NA
z logical 32 1 NA
R>

Emacs auto-complete mode for Groovy?

AFAIK there is no working (intelligent) auto-complete for Groovy. If you are inclined to a bit of hacking, the easiest way to achieving this would be to modify emacs-eclim (an Emacs package for talking to Eclipse) to work with the Eclipse Groovy plugin. Shouldn't be that bad, as there is existing code for working with Eclipse Java that you could use as scaffolding.

HTH and sorry :(

How can I load changes of .el file at startup in Emacs?

You cannot modify some special built-in libraries, including simple.el. Emacs never actually loads these special libraries from their source or byte code files. Their byte code is directly included in the Emacs executable at build time, by a process called “dumping”. Emacs loads these libraries from its own binary.

Generally, should not modify any built-in libraries anyway. Your risk breakage, and your customizations are lost when you update Emacs.

Instead, do what you are supposed to do: Add custom functions to your init.el.

Hence, instead of modifying the built-in keyboard-escape-quit, create your own function, e.g. my-emergency-quit, in your init.el, and bind it to a global key, e.g. C-c q, with

 (global-set-key (kbd "C-c q") #'my-emergency-quit)

Some final words of advice: I do not think that such a panic command does any good. The first rule of Emacs is: Don't panic. If you are stuck, don't try to quit and kill everything. Rather, try to find out why you are stuck, and how to get “un-stuck” by normal means. You'll learn Emacs better this way, imho.

Maximizing / restoring a window in emacs

Try winner-mode.

With winner-mode enabled, you can restore your previous window configuration with C-c<left>.

You can type it repeatedly to step back through the window configuration history, so you're safe even when there have been multiple intervening changes.

C-c<right> returns you (directly) to the most recent configuration.



Related Topics



Leave a reply



Submit