I'm just getting started with outshine, and I'm trying to enable outshine's keybindings, but I am stumped by the directive in the readme to
...set the outshine prefix (M-#) in your init file before (!) outline-mode is loaded to enable the outshine keybindings
I don't know how to know when outline-mode is loaded. It's a built-in mode, so I don't mention it in my dotemacs:
(require 'outshine) (setq outline-minor-mode-prefix "\M-#") (setq outshine-use-speed-commands t) (add-hook 'outline-minor-mode-hook 'outshine-hook-function) (add-hook 'emacs-lisp-mode-hook 'outline-minor-mode) (add-hook 'LaTeX-mode-hook 'outline-minor-mode) (add-hook 'text-mode-hook 'outline-minor-mode) I'm also not sure if fixing this issue will create the situation I'm hoping for. The outshine readme says that outshine uses functionality from outline-magic.el, where subtrees can be moved with M-up and M-down (as in org-mode). That's what I'm hoping for.
requirewill load the file if it is not already loaded. So move your defvar before that.defvaris wrong.defvaris used to define your own variable, but if you want to set a variable defined elsewhere to a particular value, you should usesetq(orsetq-defaultorsetq-local).