Tweets by @markusgattol |
GNU Emacs Hints and NotesOf course, since we are in GNU Emacs country, there is always another
awesome thing beyond the horizon but sooner or later folks usually
settle on a decent amount of additional Emacs packages, commands,
functions and self constructed stuff within their At least that is what happened to me and therefore I am going to not just put such useful stuff at this page from now on but also (and this will take at least a year or so) break down all the fine things I already use on a daily basis into fractions and put them here — this, however, is quite a work intensive task since my emacs stuff (as of now (February 2011) is spread all over my system. Special Emacs SubjectsXftmtty also known as multi-ttyPackages / LibrariesThis subsection is about packages and libraries that I find worth
mentioning explicitly. I am going to put information related to
certain GNU Emacs packages/libraries I use in this section. I consider
this packages useful or valuable to my daily work. However, I am not
going to mention any piece of my w3mw3m is not just yet another web browser. It is text-based web browser which smoothly integrates with GNU Emacs and thus blurs the borders between the Internet and the local machine. With w3m, what we get is a web browser that directly integrates into a platform (Emacs) and thus allows to use all the Emacs magic even when surfing the WWW (World Wide Web). The left image above shows w3m in the lower right window (currently
visiting http://plone.org/products/plone). The right image shows w3m
this time with two sessions. Also what can be seen in the upper right
window is DiredWell, how do I put it? Probably this one totally rocks describes it best. I am a CLI (Command Line Interface) addict for several reasons (speed and power mostly). So, is there any way to be even faster with daily tasks than using the CLI? Yes... there is... it definitely is Dired.
Dired, because over the years, I got used to traveling at hyperspace Dired has some add-ons like Image-Dired for example or Dired-X
(evaluate (i.e. point behind form and then
Then there is also Wdired (yes, you know the trick by now... evaluate
Image-DiredBeing with Emacs not just means one can chat, write emails, write source code, organize his schedule, manage his computer, etc. but it also means one has a powerful built-in image viewer and manipulator. Image-Dired is a facility for browsing image files. It provides viewing the images either as thumbnails or in full size, either inside Emacs or through an external viewer. I pretty much live with the out of the box configuration for Image-Dired since all the keybindings and such is really good (at least from my point of view). I just made a few keybindings for some functions I found myself using on a regular which justified to gave them some shortcuts to invoke them. As usual, all my configuration for Image-Dired can be found in my .emacs. My message for all the folks which still view/manage/mangle their
images with some sort of heavy mousing approach — you guys might
really stop wasting time and get to grips with Image-Dired, where
rotating, moving around, resizing, building an XHTML gallery for some
website etc. becomes as simple as, for example, pressing Do that with common GUI (Graphical User Interface) image viewers and at the end of the day your mouse will have gone at least a few miles plus you wasted a lot of time because you simply dealt with a stupid UI (User Interface). More information on Image-Dired can be found in the GNU Emacs manual
(within Emacs just hit How I process Static ImagesOf course, I also use the powers of Dired respectively Image-Dired to process my static images (photos). By processing, I refer to the whole process chain from the point where I plug my all-in-one digicam via USB (Universal Serial Bus) to my computer until the photos (and other multimedia stuff I came home with) are tagged, sorted, reviewed and finally put into my multimedia archive. This archive is nothing else than files on the file system — I dropped the super-but-folks-never-use-it-in-the-end-postgresql-for-private-multimedia approach in favor of the easy-to-use file system approach. I did that not because PostgreSQL is bad (in fact I think it rocks!) but simply because the fact that Dired is made in order to perform whatever actions on a file system. Using Dired boosts my productivity with regards to a UI (User Interface) more than any GUI (Graphical User Interface) or even CLI (Command Line Interface) could ever do. Next to simply organizing my static images into categories implemented via simple directories, I also tag my static images. This happens during the input processing of images, while I review, mangle, reorder, etc. them and then put them into the archive. The fact that I also tag my static images means that I get the possibility for another, horizontal view on my archive. This view can then be used (from within Image-Dired) to search, look up and reorganize things as needed. This horizontal view is more fine grained and flexible compared to the usual vertical tree view that comes with the file system tree. However, I got used to use those two approaches/views in a combined manner which really gets me great results from the beginning the whole way down to managing my archive. The screenshot below shows a bunch of Dired buffers. This is at what I typically look at during the input processing of static images right after I plugged my digicam. I made two nice udev rules as can be seen below. Those rules basically guarantee that my digicam shows up at the same device nodes at any times and thus can be picked up by another script (buffer at the topmost window below) which mounts the digicam storage into my my computers local file system. I got used to use ,----[ C-h k <f5> c e ] | <f5> c e runs the command image-dired-copy-with-exif-file-name | which is an interactive compiled Lisp function in `image-dired.el'. | It is bound to <f5> c e. | (image-dired-copy-with-exif-file-name) | | Copy file with unique name to main image directory. | Copy current or all marked files in dired to a new file in your | main image directory, using a file name generated by | `image-dired-get-exif-file-name'. A typical usage for this if when | copying images from a digital camera into the image directory. | | Typically, you would open up the folder with the incoming | digital images, mark the files to be copied, and execute this | function. The result is a couple of new files in | `image-dired-main-image-directory' called | 2005_05_08_12_52_00_dscn0319.jpg, | 2005_05_08_14_27_45_dscn0320.jpg etc. `---- in order to copy the static images from the digicam onto my computer which is great since it retrieves the EXIF (Exchangeable Image File Format) data from the static images and uses that information to generate the file name while it is copying the files. TRAMPAfter installing TRAMP (Transparent Remote Access Multiple Protocol)
into our GNU Emacs, we will be able to access files on remote machines
as though they were local. Access to the remote file system for
editing files, version control, and The package provides support for SSH (Secure Shell) connections out of the box, one of the more common uses of the package. This allows relatively secure access to machines, especially if FTP (File Transfer Protocol) access is disabled. TRAMP can transfer files between machines in a variety of ways. The details are easy to select, depending on your needs and the machines in question. TRAMP also provides the ability to edit files owned by another user
than the current user on the fly e.g. we can edit files owned by In fact, TRAMP can do a lot more than the afore mentioned. We can
issue artist-modeArtist mode, toggled by Mainframe ----- +--------------+ /.....\ | | Data /.......\ |Linux Cluster | <-+-------------- |.......| | | | \......./ +--------------+ | \...../ | ----- | v +-------+ | | | NAS | | | +-------+ There are some links and a nice screencast available. pastie.elSuper useful to directly post from within Emacs into pastebin. More here and here. python-modeFor Notes, Functions, Variables and SettingsThis is a random collection of various settings, functions and other nifty Emacs tricks that I find either worth mentioning or just wanted to make a note on them to not forget them since they already served me well in the past. I want Emacs-like Behavior with GTK ApplicationsIf we want Emacs-like behavior (keyboard shortcuts) with applications like for Firefox/Iceweasel, Pidgin, etc. then we can do sa@wks:~$ touch .gtkrc-2.0 sa@wks:~$ echo 'gtk-key-theme-name = "Emacs"' > .gtkrc-2.0 sa@wks:~$ cat .gtkrc-2.0 gtk-key-theme-name = "Emacs" sa@wks:~$ sort-numeric-fieldsComes in handy if you want to sort 0 2 3 4 5 18 6 9 10 7 22 11 12 8 13 14 1 16 17 19 20 21 15 into 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 flush-linesSometimes after I copy-paste code snippets from web pages into some Emacs buffer I get text with superfluous blank lines delimiting code. Marking region and running narrow-to-regionYou will love this! I use it for a lot of things e.g. narrow to region
and then use ,----[ C-h f narrow-to-region RET ] | narrow-to-region is an interactive built-in function in `C source code'. | It is bound to C-x n n. | (narrow-to-region start end) | | Restrict editing in this buffer to the current region. | The rest of the text becomes temporarily invisible and untouchable | but is not deleted; if you save the buffer in a file, the invisible | text is included in the file. C-x n w makes all visible again. | See also `save-restriction'. | | When calling from a program, pass two arguments; positions (integers | or markers) bounding the text that should remain visible. | | [back] `---- The grep FamilyThey can save you a lot of time. Namely they are ,----[ C-h f rgrep RET ] | rgrep is an interactive autoloaded Lisp function in `grep'. | (rgrep regexp &optional files dir) | | Recursively grep for regexp in files in directory tree rooted at dir. | The search is limited to file names matching shell pattern files. | files may use abbreviations defined in `grep-files-aliases', e.g. | entering `ch' is equivalent to `*.[ch]'. | | With C-u prefix, you can edit the constructed shell command line | before it is executed. | With two C-u prefixes, directly edit and run `grep-find-command'. | | Collect output in a buffer. While find runs asynchronously, you | can use C-x ` (M-x next-error), or | Uses keymap "grep-mode-map", which is not currently defined. | M-x compile-goto-error | in the grep output buffer, to go to the lines where grep found matches. | | This command shares argument histories with M-x lgrep and M-x grep-find. | | [back] `---- as well as ,----[ C-h f lgrep RET ] | lgrep is an interactive autoloaded Lisp function in `grep'. | (lgrep regexp &optional files dir) | | Run grep, searching for regexp in files in directory dir. | The search is limited to file names matching shell pattern files. | files may use abbreviations defined in `grep-files-aliases', e.g. | entering `ch' is equivalent to `*.[ch]'. | | With C-u prefix, you can edit the constructed shell command line | before it is executed. | With two C-u prefixes, directly edit and run `grep-command'. | | Collect output in a buffer. While grep runs asynchronously, you | can use C-x ` (M-x next-error), or | Uses keymap "grep-mode-map", which is not currently defined. | M-x compile-goto-error | in the grep output buffer, to go to the lines where grep found matches. | | This command shares argument histories with M-x rgrep and M-x grep. | | [back] `---- align-regexpThis interactive Emacs Lisp function was very handy for me during some
log files analysis. We mark the region, invoke Example data from align-regexp help: Fred (123) 456-7890 Alice (123) 456-7890 Mary-Anne (123) 456-7890 Joe (123) 456-7890 Let us say, that we want to align a region on the Fred (123) 456-7890 Alice (123) 456-7890 Mary-Anne (123) 456-7890 Joe (123) 456-7890 font-lock-modeSometimes e.g. for cut/yank actions, toggling ,----[ C-h f font-lock-mode RET ] | font-lock-mode is an interactive compiled Lisp function in `font-core.el'. | It is bound to C-c C-l. | (font-lock-mode &optional arg) | | Toggle Font Lock mode. | With arg, turn Font Lock mode off if and only if arg is a non-positive | number; if arg is nil, toggle Font Lock mode; anything else turns Font | Lock on. [skipping a lot of lines...] | The above is the default behavior of `font-lock-mode'; you may specify | your own function which is called when `font-lock-mode' is toggled via | `font-lock-function'. | | [back] `---- Collaboration with GNU EmacsIt is possible to collaborate with GNU Emacs e.g. two persons editing one file. delete-duplicates respectively delete-dupsThose two functions are used a lot here. shell-quote-argument,----[ C-h f shell-quote-argument RET ] | shell-quote-argument is a compiled Lisp function in `subr.el'. | (shell-quote-argument argument) | | Quote an argument for passing as argument to an inferior shell. | | [back] `---- file-newer-than-file-p,----[ C-h f file-newer-than-file-p RET ] | file-newer-than-file-p is a built-in function in `C source code'. | (file-newer-than-file-p file1 file2) | | Return t if file file1 is newer than file file2. | If file1 does not exist, the answer is nil; | otherwise, if file2 does not exist, the answer is t. | | [back] `---- Info-goto-nodeI make heavy use of the GNU Emacs built-in documentation system also known as info since
Often, I write documentation or just want to refer to some information within some manual or some page or so. Instead of doing it the cumbersome way most people do it
all I have to do is to insert Those who write some notes or documentation can visit particular info
pages, hit debug-on-error,----[ C-h v debug-on-error RET ] | debug-on-error is a variable defined in `C source code'. | Its value is nil | | | Documentation: | *Non-nil means enter debugger if an error is signaled. | Does not apply to errors handled by `condition-case' or those | matched by `debug-ignored-errors'. | If the value is a list, an error only means to enter the debugger | if one of its condition symbols appears in the list. | When you evaluate an expression interactively, this variable | is temporarily non-nil if `eval-expression-debug-on-error' is non-nil. | See also variable `debug-on-quit'. | | You can customize this variable. | | [back] `---- file-attributes,----[ C-h f file-attributes RET ] | file-attributes is a built-in function in `C source code'. | (file-attributes filename &optional id-format) | | Return a list of attributes of file filename. | Value is nil if specified file cannot be opened. | | id-format specifies the preferred format of attributes uid and gid (see | below) - valid values are 'string and 'integer. The latter is the default, | but we plan to change that, so you should specify a non-nil value for | id-format if you use the returned uid or gid. | | Elements of the attribute list are: | 0. t for directory, string (name linked to) for symbolic link, or nil. | 1. Number of links to file. | 2. File uid as a string or an integer. If a string value cannot be | looked up, the integer value is returned. | 3. File gid, likewise. | 4. Last access time, as a list of two integers. | First integer has high-order 16 bits of time, second has low 16 bits. | 5. Last modification time, likewise. | 6. Last status change time, likewise. | 7. Size in bytes. | This is a floating point number if the size is too large for an integer. | 8. File modes, as a string of ten letters or dashes as in ls -l. | 9. t if file's gid would change if file were deleted and recreated. | 10. inode number. If inode number is larger than the Emacs integer, | this is a cons cell containing two integers: first the high part, | then the low 16 bits. | 11. Device number. If it is larger than the Emacs integer, this is | a cons cell, similar to the inode number. | | [back] `---- Use it like this (nth 5 (file-attributes "~/.emacs")to get the mtime (modification time).
call-process,----[ C-h f call-process RET ] | call-process is a built-in function in `C source code'. | (call-process program &optional infile buffer display &rest args) | | Call program synchronously in separate process. | The remaining arguments are optional. | The program's input comes from file infile (nil means `/dev/null'). | Insert output in buffer before point; t means current buffer; | nil for buffer means discard it; 0 means discard and don't wait. | buffer can also have the form (REAL-BUFFER STDERR-FILE); in that case, | REAL-BUFFER says what to do with standard output, as above, | while STDERR-FILE says what to do with standard error in the child. | STDERR-FILE may be nil (discard standard error output), | t (mix it with ordinary output), or a file name string. | | Fourth arg display non-nil means redisplay buffer as output is inserted. | Remaining arguments are strings passed as command arguments to program. | | If executable program can't be found as an executable, `call-process' | signals a Lisp error. `call-process' reports errors in execution of | the program only through its return and output. | | If buffer is 0, `call-process' returns immediately with value nil. | Otherwise it waits for program to terminate | and returns a numeric exit status or a signal description string. | If you quit, the process is killed with SIGINT, or SIGKILL if you quit again. | | [back] `---- C-M-h,----[ C-h k C-M-h ] | C-M-h runs the command mark-defun | which is an interactive compiled Lisp function in `lisp.el'. | It is bound to C-M-h. | (mark-defun &optional allow-extend) | | Put mark at end of this defun, point at beginning. | The defun marked is the one that contains point or follows point. | | Interactively, if this command is repeated | or (in Transient Mark mode) if the mark is active, | it marks the next defun after the ones already marked. | | [back] `---- C-x C-oA lovely thing indeed... ,----[ C-h f delete-blank-lines RET ] | delete-blank-lines is an interactive compiled Lisp function in `simple.el'. | It is bound to C-x C-o. | (delete-blank-lines) | | On blank line, delete all surrounding blank lines, leaving just one. | On isolated blank line, delete that one. | On nonblank line, delete any immediately following blank lines. | | [back] `---- C-h p respectively M-x finder-by-keywordNext to all those ,----[ C-h f finder-by-keyword RET ] | finder-by-keyword is an interactive autoloaded Lisp function in `finder'. | It is bound to C-h p, <f1> p, <help> p, <menu-bar> <help-menu> <finder-by-keyword>. | (finder-by-keyword) | | Find packages matching a given keyword. | | [back] `---- M-x command-history,----[ C-h f command-history RET ] | command-history is an interactive compiled Lisp function in `chistory.el'. | (command-history) | | Examine commands from `command-history' in a buffer. | The number of commands listed is controlled by `list-command-history-max'. | The command history is filtered by `list-command-history-filter' if non-nil. | Use x to repeat the command on the current line. | | Otherwise much like Emacs-Lisp Mode except that there is no self-insertion | and digits provide prefix arguments. Tab does not indent. | key binding | --- ------- | | TAB lisp-indent-line | C-j next-line | RET next-line | ESC Prefix Command | - negative-argument | 0 .. 9 digit-argument | x command-history-repeat | DEL previous-line | <remap> Prefix Command | | C-M-q indent-sexp | | | | This command always recompiles the Command History listing | and runs the normal hook `command-history-hook'. | | [back] `---- C-c C-l toggles font-lock-modeToggle Font Lock mode. Font Lock is also known as syntax
highlighting. For more info try list-colors-displayIf you would like to see what colors are available for GNU Emacs faces
try How to figure Faces and Text Properties of...
M-x list-faces-display,----[ C-h f list-faces-display RET ] | list-faces-display is an interactive compiled Lisp function in `faces.el'. | It is bound to <C-down-mouse-2> <df>, <menu-bar> <edit> <props> <df>. | (list-faces-display &optional regexp) | | List all faces, using the same sample text in each. | The sample text is a string that comes from the variable | `list-faces-sample-text'. | | If regexp is non-nil, list only those faces with names matching | this regular expression. When called interactively with a prefix | arg, prompt for a regular expression. `---- A picture says more than a thousand words The left window above shows the current faces. The right window — on
top a ansi terminal, the buffer list in the middle and the window at
the right bottom shows the menu that can be used to edit a particular
face that has been chosen from the left window — see the bottom of my
C-x respectively C-u C-xA very useful command if you have problems with the display of some
fonts and the like — use ,----[ C-h k C-x = ] | C-x = runs the command what-cursor-position | which is an interactive compiled Lisp function in `simple.el'. | It is bound to C-x =. | (what-cursor-position &optional detail) | | Print info on cursor position (on screen and within buffer). | Also describe the character after point, and give its character code | in octal, decimal and hex. | | For a non-ASCII multibyte character, also give its encoding in the | buffer's selected coding system if the coding system encodes the | character safely. If the character is encoded into one byte, that | code is shown in hex. If the character is encoded into more than one | byte, just "..." is shown. | | In addition, with prefix argument, show details about that character | in *Help* buffer. See also the command `describe-char'. | | [back] `---- count-lines-pageIf you want to know how many lines the current page has plus how many lines are before (above) point and how many are after (below) point, then you might use ,----[ C-h k C-x l ] | C-x l runs the command count-lines-page | which is an interactive compiled Lisp function in `page.el'. | It is bound to C-x l. | (count-lines-page) | | Report number of lines on current page, and how many are before or after point. | | [back] `---- What you get is something like this in the minibuffer abbrev-modeWhenever I write text, I commonly use things like With Emacs there is the so called After using debug-on-signal,----[ C-h v debug-on-signal RET ] | debug-on-signal is a variable defined in `C source code'. | Its value is nil | | | Documentation: | *Non-nil means call the debugger regardless of condition handlers. | Note that `debug-on-error', `debug-on-quit' and friends | still determine whether to handle the particular condition. `---- M-x locate-library RET <file_name> RET,----[ C-h f locate-library RET ] | locate-library is an interactive compiled Lisp function in `subr.el'. | (locate-library library &optional nosuffix path interactive-call) | | Show the precise file name of Emacs library library. | This command searches the directories in `load-path' like `M-x load-library' | to find the file that `M-x load-library RET library RET' would load. | Optional second arg nosuffix non-nil means don't add suffixes `load-suffixes' | to the specified name library. | | If the optional third arg path is specified, that list of directories | is used instead of `load-path'. | | When called from a program, the file name is normaly returned as a | string. When run interactively, the argument interactive-call is t, | and the file name is displayed in the echo area. | | [back] `---- M-x find-library RET <file_name> RET,----[ C-h f find-library RET ] | find-library is an interactive autoloaded Lisp function in `find-func'. | (find-library library) | | Find the elisp source of library. | | [back] `---- Insert current dateThe sequence C-u M-S-! date RET inserts the current date Sun Jun 24 04:35:59 BST 2007 at point. Instead of ,----[ C-h k M-! ] | M-! runs the command shell-command | which is an interactive compiled Lisp function in `simple.el'. | It is bound to M-!, <menu-bar> <tools> <shell>. | (shell-command command &optional output-buffer error-buffer) | | Execute string command in inferior shell; display output, if any. [skipping a lot of lines...] | If it is nil, error output is mingled with regular output. | In an interactive call, the variable `shell-command-default-error-buffer' | specifies the value of error-buffer. | | [back] `---- C-u <an_integer> C-x fNormally the column width is set to 70 characters but sometimes you
might want to change that. I for example use it to write the whole
text in the Abstract area into a single line without a line break. So
I do something like ,----[ C-h k C-x f ] | C-x f runs the command set-fill-column | which is an interactive compiled Lisp function in `simple.el'. | It is bound to C-x f. | (set-fill-column arg) | | Set `fill-column' to specified argument. | Use C-u followed by a number to specify a column. | Just C-u as argument means to use the current column. | | [back] `---- However, another way to accomplish the above would be to toggle
;;;_ , toggle-option (require 'toggle-option) (setq toggle-option-list '( (flyspell-mode function nil nil) (auto-fill-mode function nil nil) ) ) and use it like that ;;;_ . 'auto-fill-mode (global-set-key (kbd "C-c t a") (fset 'toggle-auto-fill-mode (lambda () "Toggle auto-fill-mode" (interactive) (toggle-option 'auto-fill-mode) ) ) ) So, all you need to do is using What libraries are currently loadedIf you want to find out which libraries are currently loaded try ,----[ C-h v features RET ] | features is a variable defined in `C source code'. | Its value is | (repeat muse-http cgi httpd vc-arch [skipping a lot of libs] gtk x-toolkit x emacs) | | | | Documentation: | A list of symbols which are the features of the executing Emacs. | Used by `featurep' and `require', and altered by `provide'. | | [back] `---- or the variable For a list of loaded files you can take a look at ,----[ C-h f eval-after-load RET ] | eval-after-load is a compiled Lisp function in `subr.el'. | (eval-after-load file form) | | Arrange that, if file is ever loaded, form will be run at that time. | If file is already loaded, evaluate form right now. [skipping a lot of lines...] | Usually file is just a library name like "font-lock" or a feature name | like 'font-lock. | | This function makes or adds to an entry on `after-load-alist'. | | [back] `---- apropos.elI forget basic Emacs stuff all the time so I need something to help me out... This one is, bound to ,----[ C-h f apropos-command RET ] | apropos-command is an interactive compiled Lisp function in `apropos.el'. | It is bound to C-h a, <f1> a, <help> a, <menu-bar> <help-menu> <apropos> <apropos-commands>. | (apropos-command pattern &optional do-all var-predicate) | | Show commands (interactively callable functions) that match pattern. | pattern can be a word, a list of words (separated by spaces), | or a regexp (using some regexp special characters). If it is a word, | search for matches for that word as a substring. If it is a list of words, | search for matches for any two (or more) of those words. | | With C-u prefix, or if `apropos-do-all' is non-nil, also show | noninteractive functions. | | If var-predicate is non-nil, show only variables, and only those that | satisfy the predicate var-predicate. | | When called from a Lisp program, a string pattern is used as a regexp, | while a list of strings is used as a word list. | | [back] `---- If you want to search for variables use. Note the difference when
using the ,----[ C-h f apropos-variable RET ] | apropos-variable is an interactive compiled Lisp function in `apropos.el'. | It is bound to <menu-bar> <help-menu> <apropos> <apropos-variables>. | (apropos-variable pattern &optional do-all) | | Show user variables that match pattern. | pattern can be a word, a list of words (separated by spaces), | or a regexp (using some regexp special characters). If it is a word, | search for matches for that word as a substring. If it is a list of words, | search for matches for any two (or more) of those words. | | With C-u prefix, or if `apropos-do-all' is non-nil, also show | normal variables. | | [back] `---- You are looking for some value. Again, ,----[ C-h f apropos-value RET ] | apropos-value is an interactive compiled Lisp function in `apropos.el'. | It is bound to <menu-bar> <help-menu> <apropos> <apropos-value>. | (apropos-value pattern &optional do-all) | | Show all symbols whose value's printed representation matches pattern. | pattern can be a word, a list of words (separated by spaces), | or a regexp (using some regexp special characters). If it is a word, | search for matches for that word as a substring. If it is a list of words, | search for matches for any two (or more) of those words. | | With C-u prefix, or if `apropos-do-all' is non-nil, also looks | at the function and at the names and values of properties. | Returns list of symbols and values found. | | [back] `---- Now that is a neat thing indeed ,----[ C-h f apropos-documentation RET ] | apropos-documentation is an interactive compiled Lisp function in `apropos.el'. | It is bound to C-h d, <f1> d, <help> d, <menu-bar> <help-menu> <apropos> <apropos-documentation>. | (apropos-documentation pattern &optional do-all) | | Show symbols whose documentation contains matches for pattern. | pattern can be a word, a list of words (separated by spaces), | or a regexp (using some regexp special characters). If it is a word, | search for matches for that word as a substring. If it is a list of words, | search for matches for any two (or more) of those words. | | With C-u prefix, or if `apropos-do-all' is non-nil, also use | documentation that is not stored in the documentation file and show key | bindings. | Returns list of symbols and documentation found. | | [back] `---- Finally you could set ,----[ C-h v apropos-do-all RET ] | apropos-do-all is a variable defined in `apropos.el'. | Its value is nil | | | Documentation: | *Whether the apropos commands should do more. | | Slows them down more or less. Set this non-nil if you have a fast machine. | | You can customize this variable. | | [back] `---- to For the more-confused ones a look at the source might provide some more nifty tricks to find orientation again ,----[ C-h f find-library RET ] | find-library is an interactive compiled Lisp function in `find-func.el'. | (find-library library) | | Find the elisp source of library. | | [back] `---- a Transform text to lower/upper caseThis is bound to (put 'downcase-region 'disabled nil) (put 'upcase-region 'disabled nil) into your ,----[ C-h f downcase-region RET ] | downcase-region is an interactive built-in function in `C source code'. | It is bound to C-x C-l. | (downcase-region beg end) | | Convert the region to lower case. In programs, wants two arguments. | These arguments specify the starting and ending character numbers of | the region to operate on. When used as a command, the text between | point and the mark is operated on. | | [back] `---- Development Versions of Emacs PackagesI have certain Emacs packages or just single files that even to old in DebianGNU/* sid (still in development). Because of that, I am using the up-to-date code of those packages which I directly pull from projects SCM (Software Configuration Management) systems on a regular. Automatize Updating to Development CodeThe fact that development code is not available via APT (Advanced Packaging Tool) requires one to take care one selves about acquiring the up-to-date code. In order to ease such repetitive tasks I decided to introduce a little shell code magic. The idea is simple:
Now, if you just take a look at my Fetch up-to-date w3m CodeYesterday (Tue Sep 4 2007) I switched to the multi-tty branch. After
that, Emacs did not start correctly (see how I start Emacs — I use an
alias in my Fetch up-to-date BBDB CodeThe development and release versions are available via Anon-CVS to the
CVS tree at To check out the development version of the BBDB, use the following
command: DebianGNU/* NotesThis section is about GNU Emacs providing and/or leveraging features for DebianGNU/*. The package sa@pc1:~$ acsh debian-el | grep -A9 ^Description Description: Emacs helpers specific to Debian users This package contains: . apt-sources - major mode for editing Debian sources.list files; apt-utils - interface to APT (Debian package management); debian-bug - an Emacs command to submit a bug report; deb-view - view contents of Debian package, similarly to tar-mode; gnus-BTS - provides buttons for bug numbers seen in Gnus messages; preseed - major mode for editing debian-installer preseed files. . sa@pc1:~$ is such an example. It provides outstanding tools to GNU Emacs in order to retrieve information from Debian or to do work on/with Debian. However, note that I also provide information on this website which tells about common tools that help to develop and maintain software for Debian. Leveraging debian-elThis section shows some examples that leverage the powers that are
available when using After installing
M-x apt-utils-show-packageFirst, we show a packages information as most of you are probably used
to when you use the CLI (Command Line Interface) e.g. After issuing M-x apt-utils-view-changelogAbove we issued a command to show a packages information. Pretty much every time I take a look at the change-log. I am used to this although I use sa@pc1:/tmp$ acsn apt-list* apt-listbugs - Lists critical bugs before each apt installation apt-listchanges - Display change history from .deb archives sa@pc1:/tmp$ To figure the change-log of the package How long would it probably take to do all that via the mouse or by changing into the change-log directory of a particular package? Sure, most tools have either a switch or provide some other possibility to attain whatever information is needed but in the end my experience is, using an integrated environment like GNU Emacs has proven numerously superior because that logical chaining of moving from A to B and back and from there on to C etc. and doing something that semantically fits the current needs of a human is always just a few keystrokes far from being completed. M-x apt-sources-modeA GNU Emacs mode that eases editing DiredDired has some neat features... deb-view-dired-view,----[ C-h f deb-view-dired-view RET ] | deb-view-dired-view is an interactive compiled Lisp function in `deb-view.el'. | (deb-view-dired-view) | | View Debian package control and data files. | Press "q" in either window to kill both buffers | and return to the dired buffer. See deb-view. | | [back] `----
|