Constantin Kulikov
Constantin Kulikov
I updated the code in the previous post. But before running it, you must update the `persp-mode`.
> When a perspective is restored, the point (cursor) position is saved--is this true? Yes, this is true. It's saved/restored by emacs' window-state-get/put functions. However you can try to reset...
Try to run your code in `persp-after-load-state-functions`(maybe it will require to run with delay(using timer) to work properly) : ```elisp (with-eval-after-load "persp-mode" (defun persp-restore-org-agenda-after-init (file phash &rest _args) (when (and...
> By using a timer for delay, did you mean specifically using sleep-for I mean `run-at-time`: ```elisp (run-at-time seconds nil #'(lambda () (your-code-here))) ``` I did a mistake in the...
try something like this: ```elisp (with-eval-after-load "persp-mode-projectile-bridge-mode" (when persp-mode-projectile-bridge-mode (remove-hook 'find-file-hook #'persp-mode-projectile-bridge-hook-find-file) (remove-hook 'projectile-find-file-hook #'persp-mode-projectile-bridge-hook-switch)) (add-hook 'persp-mode-projectile-bridge-mode #'(lambda () (remove-hook 'find-file-hook #'persp-mode-projectile-bridge-hook-find-file) (remove-hook 'projectile-find-file-hook #'persp-mode-projectile-bridge-hook-switch)))) ```
> why do I need to set persp-keymap-prefix before activating the mode? And what is wrong with that? I guess you need to set it before activating the mode because...
And about your first issue: > Looks like using mode-require-final-newline instead did the trick. Actually I don't see how this may help you. ) `(setq-local require-final-newline nil)` in the `persp-before-save-state-to-file-functions`...
> is it possible to change the order of layouts? Everything is possible if you really want it.) For now there is no such functionality in the `persp-mode.el`. You can...
Hey! Don't know if you still need it, here is an example of how it could be achieved: ``` elisp (with-eval-after-load "persp-mode" (defvar persp-names-sorted (when (bound-and-true-p *persp-hash*) (persp-names)) "Ordered list...
Yes. I have already noticed it myself(it also slows down traveling through the company-mode's candidate list). Probably this will fix it for most cases(replacing this function and regenerating buffer-predicate-s): ```...