reddit / emacs

How to add custom info file to the info-lookup, in order to use C-h S

sebmi ยท 2022-02-05 17:54
Dears, I have a custom project which a specific info file for which some function are referenced in the \`Function Index' so accessible at the node "(mylib)Function Index" My INFOPATH environment variable is updated to include the \`.info' and the "dir" has been also updated with \`install-info [mylib.info](https://mylib.info) dir', which makes it visible when looking for node with C-h i -> m mylib &#x200B; Is there way to also register [mylib.info](https://mylib.info) withing info-look so when I hit \`C-h S' I get the documentation of the related function at point ? copying info-look.el I tried adding, without success, to my setup the function: (info-lookup-maybe-add-help :mode 'c-mode :topic 'symbol :regexp "\\(struct \\|union \\|enum \\)?[_a-zA-Z][_a-zA-Z0-9]*" :doc-spec '(("(mylib)Function Index" nil "^[ \t]+-+ \\(Function\\|Macro\\): .*\\<" "\\>") ) :parse-rule 'info-lookup-guess-c-symbol) Any help would be appreciated Thanks