Fork me on GitHub
#emacs
<
2017-12-31
>
qqq03:12:53

with lispy, is there a way to move "into" a sexp? for example, cursor is at | |(+ 2 3) now, the kehs hjklf all do not move me to the +, 2, or 3 they seem to only move to corresponding ( or ). but I want to move into the "symbols" of the sexp, is that possible?

qqq09:12:13

(defun find-init-el ()
  (interactive)
  (find-file "~/.emacs.d/init.el"))

(general-define-key :prefix "<home>"
		    "f 6" 'find-init-el
		    "f 7" '(find-file "~/.emacs.d/init.el")
		    
		    )
f 6 works, but f 7 does not -- how do I fix this?

bozhidar16:12:24

@qqq You should wrap this in some interactive lambda.

bozhidar16:12:16

(lambda () (interactive) (find-file ...

qqq21:12:57

for whatever reason, I find this surprisingly hard to do: I want something that will do all folds where it starts with (do ;; ... or (def ... or (def ... and fold until the matching ) it's okay to look for the end based on identation, as I will guarantee that the file is properly indented