13

You can visit the file python.el.gz which defines the mode doing M-xfind-libraryRETpythonRET. The commentary at the beginning of the file is pretty comprehensive.


11

The convention is documented in the section you already referenced (Tips for Documentation Strings). The purpose of the quotes is mentioned, and examples are provided: Help mode automatically creates a hyperlink when a documentation string uses a symbol name inside single quotes ... For example, if you write This function sets the variable `buffer-...


9

M-x finder-commentary RET <library-name> RET extracts that section and presents it in a separate buffer for reading. There is also M-x finder-by-keyword for discovering libraries this way.


9

Apropos help in Emacs is by no means limited to function apropos. M-x apropos documentation. It lets you match keywords or a regexp against doc strings. Very helpful when you don't know how the function might be named but you might be able to guess some words used in its doc. For example, M-x apropos-documentation RET shift bit RET shows you the names and ...


9

Included with emacs is a basic tool called picture-mode: To edit a picture made out of text characters (for example, a picture of the division of a register into fields, as a comment in a program), use the command ‘M-x picture-mode’ to enter Picture mode. In Picture mode, editing is based on the “quarter-plane” model of text, according to which ...


8

You've seen the basics, really. Your main problem was that this documentation was wrong, not that you weren't looking in the right place. The slightly more direct way to read that documentation for a mode is by calling describe-function: C-hf outline-minor-mode And the bit you missed is that, should the mode in question be indexed in the manual, you can ...


8

It sounds as if the dir file within your info directories don't contain all the nodes that it should. You can verify this by looking at the contents of the file /usr/share/info/emacs-24/dir (if this is the directory that's lacking entries). Normally, this file will be updated by the program that installs the info file, but you can also do it manually. If ...


8

I can add not an exact answer to your question, but a workflow that eliminates the need for it. I use smex instead of execute-extended-command. Once in the minibuffer of smex: RET calls execute-extended-command C-h f calls smex-describe-function M-. calls smex-find-function I don't like the default bindings, so I've customized them: (eval-after-load '...


8

I don't see a way built in to company-mode to do this, but you can add your own key binding to company-active-map. As a quick experiment I took the company-show-doc-buffer implementation and simply removed the company--electric-do wrapper: (defun my/company-show-doc-buffer () "Temporarily show the documentation buffer for the selection." (interactive) ...


8

Indeed it does accomplish that behavior using overlays. Specifically- it uses the 'after-string property to show the documentation (see: Overlay Properties). If you examine the function company-coq--show-definition-overlay-at-point (ex: via M-x find-function) you can see exactly how it's created: (setq company-coq-definition-overlay (make-overlay ins-pos ...


8

You can use the following links: info:elisp:Introduction info:elisp The first will take you to the Elisp Intro, the second to the Reference Manual. Whenever you may wish to link to an info document, use the following syntax: info:file:node The file and node names are always listed on the top of any info file. In case the node name has spaces, then you'll ...


7

The "easiest way" is to just define your own version of describe-function, and bind that to C-h f. Take the vanilla code, and change only the call to completing-read so that it uses the same history list that M-x (execute-extended-command) uses, which is extended-command-history. (defun my-describe-function (function) "Display the full documentation of ...


6

Please note that it's very easy to invoke the command from its Help buffer. After typing C-h f just type M-x M-n RET. This works because in a new Help buffer the command name is at the top of the buffer under the cursor, and M-n retrieves it to the minibuffer. However, if you want to add a command to extended-command-history every time you visit its ...


6

C-h i runs the info command by default, which searches for info files in Info-directory-list. If this is nil Info uses the environment variable INFOPATH or Info-default-directory-list if no INFOPATH variable is defined. When the info files are not found it is possible that one or more of these values has been incorrectly customised.


4

You can use C-h o (describe-symbol) on Emacs 25, here is the related NEWS info: Changes in Emacs 25.1 ** New doc command `describe-symbol'. Works for functions, vars, faces, etc... (It was originally called describe-function-or-variable according to this commit.) Variable and function with the same name can be showed at the same time, for ...


4

That error is because the full documentation is not installed by default. Solve it by installing emacs25-common-non-dfsg # aptitude install emacs25-common-non-dfsg Test it by trying, C-h i h It should now work.


4

Author's comment on a page comparing company-mode to auto-complete: What happens when you press F1 in company mode It uses pop-to-window to display the help buffer, but hides it before the next command (unless that command is scroll-other-window or scroll-other-window-down). Based on that, you can only scroll the documentation buffer, not ...


4

(defun modes-tree () (cl-loop with result = (make-hash-table) for maybe-mode in (apropos-internal "-mode$") ;; This doesn't really filter all non-modes, but it gets close when (fboundp maybe-mode) do (setf (gethash maybe-mode result) (get maybe-mode 'derived-mode-parent)) finally (cl-return result))) Something to get you started....


4

In answer to the question of how often the paper copy of the manual is updated, the kind folks in the FSF sales department responded with the following (circa late-October 2014 for future reference; quoted with their permission): Thank you for supporting the Free Software Foundation. So, we usually order a new version of the Emacs manual when the ...


4

Use Literate DevOps Method I recommend using the literate devops method via org-mode, that @phils suggested in the comments, because of the ease of use and adaptable workflow. Example Workflow Create or open an org-mode file to store an manage your notes and annotations. e.g. C-x C-f ex1-annotations.org Add a new shell SRC code block using built-in easy ...


4

I was looking for the variable Info-hide-note-references. Specifically, setting it to 'hide results in the behavior I want. The Sphinx FAQ goes into more detail about this, and suggests the following advice to automatically enable this on sphinx-generated files (Fixed since the regex they suggest wasn't working) (defvar-local Info-hide-note-references t) (...


4

(Please state your Emacs version, and name the Info node in question: Adjusting Point.) You say: I am not sure those are the same things. If they are, I think they are not consistent expression, at least the former should be text that has the ‘display’, ‘composition’ or ‘invisible’ properties. You are exactly right: that is not grammatical ...


3

The Info (hypertext) manual that is distributed with Emacs and available from Emacs by C-h r is updated periodically by fixing doc bugs. It is also updated for each Emacs release, to be accurate with respect to changes in the program, including new features. If you see something that needs to be improved, please file an enhancement request or bug report, ...


3

Judging by the issue, the author of this question expected to see the documentation for variables from a package that hasn't been loaded yet. M-x describe-variable won't show it either, so it's not a bug.


3

As of May 2016, for develop branch of Spacemacs, the command is helm-spacemacs-help-layers under Space h l (assuming Space is your leader key). It will open a Helm buffer with all layers available in your Spacemacs. Choose a layer, press Enter, and you will end up in the layer's README file. Also, while still browsing the list of layers in Helm, press Ctrl+...


3

There are two issues here. On the one hand, when a function is called, the arguments are evaluated first. But when you evaluate a macro, the arguments are not evaluated. Instead, they are used to expand the macro into a form, which is subsequently evaluated. On the other hand, a form is just a single lisp object that is going to be evaluated, while a body ...


3

To search through documentation, you can use the command apropos-documentation, which is bound to C-h d by default. The other apropos commands may be useful to you. You can use apropos to search for apropos functions by using apropos-command (bound to C-h a) and typing apropos RET. There is also a Helm command called helm-apropos that will allow you to ...


3

The command you are looking for is describe-package?


3

elpy has a function elpy-open-and-indent-line-below which is binded to <S-return>. After """, you can hit <S-return> to open new line and indent automatically. You can use this at the end of line. Alternatively, you can bind return to this function. (define-key elpy-mode-map (kbd "<return>") 'elpy-open-and-indent-line-below)


3

I think, you can do one of two things: Define your own type to search for via find-func.el. This is how it's done in ert.el (Search for current-load-list and find-function-regexp-alist.) But I don't think that this will work with help-mode buffers, i.e. no linkage. Or extend find-function-regexp: Ordinarily this variable evaluates to a regexp to search ...


Only top voted, non community-wiki answers of a minimum length are eligible