5 ms·
I tried using it but got stuck on having to learn Lisp to understand my config file.
by j4yav 6y ago
I tried using it but got stuck on having to learn Lisp to understand my config file.
- revscat 6y agoApparently all the cool kids are using neovim + Lua these days. Lisp turned me off of emacs years ago as well. Recently I started digging into Neovim and have found Lua much easier to parse/internalize than Lisp, and kind of a joy to work with.
- j4yav 6y agoGreat, I am at least halfway on the right track since I am using neovim. I know Lua a bit, I actually didn’t realize it was integrated.
- fao_ 6y agoI'm not sure what's difficult about (map! :n "ff" #'save-buffer) ; Save (map! :n "fq" #'kill-current-buffer) ; Quit a buffer or (defun my/org-buffer-check () "Check that we are in org-directory, and the buffer name is in that directory" (and (string= org-directory default-directory) (seq-contains (directory-files org-directory nil) (buffer-name) 'string=))) the latter being easily represented as: function my/org-buffer-check() return string=(org-directory, default-directory) and seq-contains(directory-files(org-directory, nil), buffer-name(), &string=) end (seq-contains looks through the sequence returned by directory-files, for the result of buffer-name(), and compares them using the string equality function)
- j4yav 6y agoSorry but that is not clear or obvious at all to me.
- mousepilot 6y agoI understand the "!", I use it when it fails the first time and I'm trying to hint that I really really want it to work.