Giter VIP home page Giter VIP logo

torus's People

Contributors

chimay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

torus's Issues

Still need (require 'torus) if using use-package

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?

torus--update-position: Function torus--update-history : bad torus

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\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)
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. :)

Automatically track mark ring changes in torus?

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.

torus don't persist through emacs reboots

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.

suspicious :init in use-package example in README

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!

update 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)

Cannot add locations in the same file

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.

Separate "circle" for separate frames?

I'm loving torus so far, but I tend to create two separate circles:

  • source files for my project, and
  • test files for my project.

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.