chimay / torus Goto Github PK
View Code? Open in Web Editor NEWSwitching buffers and buffer groups at will in emacs. Based on MTorus : rewritten from scratch
License: GNU General Public License v2.0
Switching buffers and buffer groups at will in emacs. Based on MTorus : rewritten from scratch
License: GNU General Public License v2.0
I am using torus (elpa torus-20190308.1757) with the use-package (more or less) from the README.md
I added :demand, since :bind implies :defer.
This is message shows up upon loading.
I have the following in my emacs.el:
(use-package torus
:ensure t
:bind (:map torus-map
("M-p" . torus-previous-location)
("M-n" . torus-next-location))
:config
(setq torus-prefix-key "s-,")
;; Range 0 -> 3
(setq torus-optional-bindings 3)
;; Created if non existent
(setq torus-dirname "~/emacs/.emacs.d/torus/")
(setq torus-load-on-startup t)
(setq torus-save-on-exit t)
(setq torus-autoread-file "~/emacs/.emacs.d/torus/last.el")
(setq torus-autowrite-file torus-autoread-file)
(setq torus-history-maximum-elements 30)
(setq torus-maximum-horizontal-split 3)
(setq torus-maximum-vertical-split 3)
(torus-init)
(torus-install-default-bindings))
Torus is installed on the system; however, upon restart I still need to either (find-library torus)
and eval-buffer
or I need a (require `torus) preceding my use-package line. For every other library in my file (~100 of them) use-package does the trick on its own. Why do I still need require to get torus loaded?
I am using torus (elpa torus-20190308.1757) with the use-package (more or less) from the README.md
Upon closing emacs (i did not work with it or create a torus), it is not possible to close emacs because of this error:
Debugger entered--Lisp error: (error "Function torus--update-history : bad torus")
signal(error ("Function torus--update-history : bad torus"))
error("Function torus--update-history : bad torus")
torus--update-position()
torus-write("~/.emacs.d/torus/last.el")
torus-quit()
kill-emacs()
#f(compiled-function (&optional arg) "Offer to save each buffer, then kill this Emacs process.\nWith prefix ARG, silently save all file-visiting buffers without asking.\nIf there are active processes where process-query-on-exit-flag'\nreturns non-nil and
confirm-kill-processes' is non-nil,\nasks whether processes should be killed.\nRuns the members of kill-emacs-query-functions' in turn and stops\nif any returns nil. If
confirm-kill-emacs' is non-nil, calls it." (interactive "P") #<bytecode 0x22fe93>)(nil)
save-buffers-kill-emacs@auto-compile(#f(compiled-function (&optional arg) "Offer to save each buffer, then kill this Emacs process.\nWith prefix ARG, silently save all file-visiting buffers without asking.\nIf there are active processes where process-query-on-exit-flag'\nreturns non-nil and
confirm-kill-processes' is non-nil,\nasks whether processes should be killed.\nRuns the members of kill-emacs-query-functions' in turn and stops\nif any returns nil. If
confirm-kill-emacs' is non-nil, calls it." (interactive "P") #<bytecode 0x22fe93>) nil)
apply(save-buffers-kill-emacs@auto-compile #f(compiled-function (&optional arg) "Offer to save each buffer, then kill this Emacs process.\nWith prefix ARG, silently save all file-visiting buffers without asking.\nIf there are active processes where process-query-on-exit-flag'\nreturns non-nil and
confirm-kill-processes' is non-nil,\nasks whether processes should be killed.\nRuns the members of kill-emacs-query-functions' in turn and stops\nif any returns nil. If
confirm-kill-emacs' is non-nil, calls it." (interactive "P") #<bytecode 0x22fe93>) nil)
save-buffers-kill-emacs(nil)
#f(compiled-function (&optional arg) "Offer to save each buffer, then kill the current connection.\nIf the current frame has no client, kill Emacs itself using\nsave-buffers-kill-emacs'.\n\nWith prefix ARG, silently save all file-visiting buffers, then kill.\n\nIf emacsclient was started with a list of filenames to edit, then\nonly these files will be asked to be saved." (interactive "P") #<bytecode 0x22ff63>)(nil) save-buffers-kill-terminal@auto-compile(#f(compiled-function (&optional arg) "Offer to save each buffer, then kill the current connection.\nIf the current frame has no client, kill Emacs itself using\n
save-buffers-kill-emacs'.\n\nWith prefix ARG, silently save all file-visiting buffers, then kill.\n\nIf emacsclient was started with a list of filenames to edit, then\nonly these files will be asked to be saved." (interactive "P") #<bytecode 0x22ff63>) nil)
apply(save-buffers-kill-terminal@auto-compile #f(compiled-function (&optional arg) "Offer to save each buffer, then kill the current connection.\nIf the current frame has no client, kill Emacs itself using\n`save-buffers-kill-emacs'.\n\nWith prefix ARG, silently save all file-visiting buffers, then kill.\n\nIf emacsclient was started with a list of filenames to edit, then\nonly these files will be asked to be saved." (interactive "P") #<bytecode 0x22ff63>) nil)
save-buffers-kill-terminal(nil)
funcall-interactively(save-buffers-kill-terminal nil)
call-interactively(save-buffers-kill-terminal nil nil)
command-execute(save-buffers-kill-terminal)
If you need more information, please tell me. :)
It would be awesome of torus
could automatically track changes to the mark ring and global mark ring. That one, one could the torus API to easily move between locations that one has visited :)
Is there some easy way to achieve this? I'm a total emacs noob, and I'm frustrated with how annoying it is to move between locations.
If I need to restart my emacs (e.g. when it freezes), I always come back with no torus, circles, or locations. This seems like a major problem, unless I misunderstand the intended use case of Torus.
Hi,
sorry, it's me again.. ;)
Could you please verify the use-package example from the README.
Afaik, the code in :init is executed before the package is loaded, so to me torus-init does not make sense there.
In my setup, i put torus-init in the :config part, since this is executed after the package is loaded.
Another idea for updating the use-package example (i use different user-emacs-dirs for package testing):
(torus-dirname (concat user-emacs-directory (file-name-as-directory "torus")))
(torus-autoread-file (concat torus-dirname "last.el"))
Cheers!
how to avoid this prompt on every restart of emacs? have the default configuration as in Readme.
update torus-previous-history to torus-history-older
and torus-next-history to torus-history-newer
(global-set-key (kbd "<S-prior>") 'torus-previous-history)
(global-set-key (kbd "<S-next>") 'torus-next-history)
(define-key torus-map (kbd "<next>") 'torus-history-older)
(define-key torus-map (kbd "<prior>") 'torus-history-newer)
When I try to add a second location in the same file with torus-add-location
, I see an error like:
Location myNewTestament.org at line 8976 col 0 already exists in circle scriptures
Repeated for any line I move to (the line number updates in the error). The location is not added.
Since there also doesn't seem to be a ready way to update existing locations, this is a real problem.
I'm loving torus so far, but I tend to create two separate circles:
Then, I want to quickly cycle between the first and the second circle within two separate windows or frames. (Typically, these are actually under tmux, with the second frame created by emacsclient -c
.)
However, I find that when I switch circles, the other frame switches circles as well. I.e. it seems like the active circle is a global-variable. Is there any way to instead make this state per-frame?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.