![]() ![]() Personally, I like it way more thanĬomment-dwim, as it’s simpler and more consistent. It will comment/uncomment the current line (or region) - nothing more, nothing less. comment-lineĬomment-line is a newer command that was added in Emacs 25.1, as a simplerĪlternative to comment-dwim. Invocations of the command handled this somehow. Select the commented region (in this case the current line) and invokeĬommend-dwim on it, but I think it would have been nice if repeated One thing that’s somewhat annoying about comment-dwim is that it’s not veryĬonvenient to uncomment the current line. This versatile command is bound to M- by default. Else, call comment-indent, which simply indents the comment.C-u), callĬomment-kill (this command kills the first comment on the line, if any). If a prefix argument is specified (e.g.If the region is active it calls comment-region (unless it onlyĬonsists of comments, in which case it calls uncomment-region).Ĭomment-insert-comment-function if it is defined, otherwise insert a.Depending on the context in which it’s invoked it can comment-dwimĬomment-dwim 1 is the Swiss army knife of Emacs commentĬommands. In a similar vein - it’sĪ command you’d likely never use directly. Like comment-region it’s not bound to any key by default. uncomment-regionĪs the name implies it simply uncomments each line in the active region. ![]() There are at least two more capable commands that render comment-region useless. The comment-region command is not bound to any key by default. I’ll admit I never felt the need to change the default value of comment-style ( indent). If they look okay, then see teaching emacs how to find M2-init.el, teaching emacs how to find M2, and teaching your shell how to find M2.(( plain nil nil nil nil "Start in column 0 (do not indent), as in Emacs-20" ) ( indent-or-triple nil nil nil multi-char "Start in column 0, but only for single-char starters" ) ( indent nil nil nil t "Full comment per line, ends not aligned" ) ( aligned nil t nil t "Full comment per line, ends aligned" ) ( box nil t t t "Full comment per line, ends aligned, + top and bottom" ) ( extra-line t nil t t "One comment for all lines, end on a line by itself" ) ( multi-line t nil nil t "One comment for all lines, end on last commented line" ) ( box-multi t t t t "One comment for all lines, + top and bottom" )) If Macaulay2 doesn't start up (in a buffer named *M2*), check that you typed in the above lines correctly into. emacs file, or you should disable the systems use of the f12 key. On MacOS X systems, f12 is usurped by either DashBoard, SpotLight, or something else, so either you must change the f12 to some other key, e.g., f8, in the. Start Macaulay2 by pressing the f12 function key. if you want to use your f12 key for something elseĪfter saving your. comment out the following line with an initial semicolon Alternatively, and much simpler, run M2, and let the setupEmacs function do it for you.emacs file in your home directory Comments and reference documentations are intentionally inconspicuous and. ![]() emacs file in your home directory, creating the file if necessary. Build for Emacss terminal- and GUI mode with true colors and support for many. If not, then in order for emacs to be able to find these files, place the following lines in the. ![]() If you're lucky, then your system administrator has installed Macaulay2 so that directory ends up in the same place where emacs looks for its files, as listed by the emacs variable loadpath. The Macaulay2 emacs interface consists of several files in the directory share/emacs/site-lisp/Macaulay2/ in the Macaulay2 distribution tree. After running through that you will want to examine the online emacs manual that can be read with info mode you may enter or re-enter that mode with the keystrokes C-h i. (The notation C-h indicates that you should type Control-H, by holding down the control key, and pressing H.) The emacs tutorial will introduce you to the basic keystrokes useful with emacs. Start up emacs with the command emacs and then start up the emacs tutorial with the keystrokes C-h t. If you are a newcomer to emacs, you should spend a few minutes going through the emacs tutorial. ![]()
0 Comments
Leave a Reply. |