Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
anybody authored and tarsius committed Dec 9, 2010
1 parent 31837e9 commit e02c1ce
Show file tree
Hide file tree
Showing 20 changed files with 238 additions and 51 deletions.
16 changes: 16 additions & 0 deletions BeSlayed
@@ -0,0 +1,16 @@
I use Emacs (GNU). My main use of Emacs is for editing (La)TeX files---the (La)TeX capabilities of Emacs (AUCTeX) are amazing---for papers on formal semantics and historical linguistics.

Homepage: http://www.jnanam.net/slade/

Lingblog: http://staefcraeft.blogspot.com

Techblog: http://babbagefiles.blogspot.com (including some Emacs-ish keybindings for the Firefox Pentadactyl / Vimperator plugin here: http://babbagefiles.blogspot.com/2010/11/hack-emacs-like-bindings-for.html )


[new:DrewAdams:2010-12-09 09:10 UTC]
Welcome to the wiki. -- DrewAdams



----
CategoryHomepage
2 changes: 1 addition & 1 deletion CategoryHomepage
Expand Up @@ -41,7 +41,7 @@ Please try to keep this list alphabetized (See AlphabetizeHomepageList). It make

* AadityaSood, AaronBrady, AaronCrane, AaronHawley, AaronL, AarreLaakso, AbdulBijur, [[abiessu]], AdamHouston, AdamKerz, AdamShand, AdrianAichner, AdrianKubala, AdrianMrva, [[agg]], [[ahei]], AidanKehoe, AidanSchofield, AkimichiTatsukawa, AlainMellan, AlanMackenzie, AlanSchussman, AlastairHoughton, AlbertoGarcia, AleixConchilloFlaque, AlekseiGusev, AlessandroPiras, AleVesely, AlexandreDulaunoy, AlexandreVassalotti, AlexBennee, AlexChaffee, AlexCoventry, AlexEvstiougov, AlexeyMikhailov, AlexeyRomanov, AlexMidgley, AlexOtt, AlexScherbanov, AlexSchroeder, AlexShinn, AllenBeyeRiddell, AlokSingh, AlvaroMartinez, AmirMohammadSaied, AmitPatel, AmyYoung, AnandPillai, AndersLindgren, AndreasFuchs, AndreasSeltenreich, AndreRiemann, AndrewChoi, AndrewCosgriff, AndrewTaylor, AndrewYates, AndreyBalaguta, AndyChambers, AndyNorman, AndyStewart, AngelinaCarlton, AnilNarayanan, AnilTappetla, AnselmHelbig, AntonKirillov, AntonKulchitsky, AntonNazarov, ArjenWiersma, ArneSchwabe, ArtisRozentals, ArunRavindran, AshishShukla, AviRozen, AxelBoldt, AythamiSantana

* BaijuMuthukadan, BaoqiuCui, BarneyDalton, BarryMargolin, BarryWarsaw, BartTeeuwisse, BasKok, BastienGuerry, BastienGuerryFrançais, BenAtkin, BenCluff, BenjaminDrieu, BenjaminPierce, BenJansens, BenMoseley, BenoitDubois, BenWing, BillBarnard, BillHarris, BillLovett, BillWohler, [[bkhl]], BobDuCharme, BorjaTarraso, BradleyRhodes, BrandonCsSanders, BrandonWMaister, BrennanSharp, BrentGoodrick, BrettKelly, BrianBerry, BrianCully, BrianGough, BrianKavanagh, BrianMasinick, BrianMosher, BrianPalmer, BrianTempleton, BruceDurling, BrunoBonfils, BryanMurdock, BrYanPJohnson, [[bxy]]
* BaijuMuthukadan, BaoqiuCui, BarneyDalton, BarryMargolin, BarryWarsaw, BartTeeuwisse, BasKok, BastienGuerry, BastienGuerryFrançais, BenAtkin, BenCluff, BenjaminDrieu, BenjaminPierce, BenJansens, BenMoseley, BenoitDubois, BenWing, BeSlayed, BillBarnard, BillHarris, BillLovett, BillWohler, [[bkhl]], BobDuCharme, BorjaTarraso, BradleyRhodes, BrandonCsSanders, BrandonWMaister, BrennanSharp, BrentGoodrick, BrettKelly, BrianBerry, BrianCully, BrianGough, BrianKavanagh, BrianMasinick, BrianMosher, BrianPalmer, BrianTempleton, BruceDurling, BrunoBonfils, BryanMurdock, BrYanPJohnson, [[bxy]]

* CafeIne, CareyEvans, CarlLunde, CarlMeyer, CarsonReynolds, CarstenDominik, CecilioPardo, CedricLallain, CharlesPhilipChan, CharlesSebold, CharlesStewart, CharlesWaldman, CharlieMartin, [[chmouel]], ChongYidong, ChrisBall, ChrisBurgess, ChrisForno, ChrisGreen, ChrisL, ChrisLowis, ChrisMcMahan, ChrisMoore, ChrisParsons, ChristianJauvin, ChristianQueinnec, ChristianRidderstroem, ChristianRovner, ChristofferSHansen, ChristophConrad, ChristopherKelty, ChristopherMBalz, ChristopherSmith, ChristopherSuckling, ChristophWedler, ChrisVanDusen, ChrisWebber, ClairChing, ClaireConnelly, ClaudineChionh, ClausBrunzema, ClemensFischer, CliffordAdams, ClintLaskowski, ColdBlue, ColinCochrane, ColinMarquardt, ColinWalters, CraigFinseth, CraigLennox, CraigMcDaniel, CrivetiMihai, CyprianLaskowski

Expand Down
5 changes: 5 additions & 0 deletions DiredOmitMode
Expand Up @@ -19,6 +19,11 @@ With most recent Emacs versions (e.g. 23.1.92.1) no hooks are needed and the fol
(setq dired-omit-files
(concat dired-omit-files "\\|^\\..+$"))

----

One thing that I want is for dot-files (e.g., .bashrc, .emacs, etc.) to be colored in the same dim face that the other uninteresting files are colored in. I set (setq dired-omit-files "^\\.?#\\|^\\.$\\|^\\.\\.$\\|^\\..*$"), which does hide my dot-files when I hit M-o, but these files aren't colored in the dim face. It seems it only dims the files that match the extensions in dired-omit-extensions, but obviously this won't work for dot-files. Does anyone have a work-around for this? Thanks.

-- parolang

'''See also Dired+''' (DiredPlus), for a way to color less-interesting files differently in Dired. Combined with DiredOmitMode, this can do either of the following:
* Give you two levels of disinterest.
Expand Down
12 changes: 12 additions & 0 deletions DiredSortDirectoriesFirst
Expand Up @@ -35,5 +35,17 @@ Here is a better method that is based on the above code, but doesn't break after
[new:DrewAdams:2004-12-24 22:18 UTC]
See DiredSortMenu for info on FrancisWright's library <code>dired-sort-menu.el</code>. It lets you do this and much, much more. -- DrewAdams

----

I don't know if this is a new feature of GNU ls, but you can use the ``--group-directories-first'' option to accomplish this. Here's what I have in my init.el:

<pre>
(setq dired-listing-switches "-lXGh --group-directories-first")
</pre>

Alternatively, type C-u s while in a Dired buffer will prompt you for new ``ls'' switches which will let you sort the buffer any way you want that is available to ``ls''. The key is to read the ``ls'' manual :)

-- parolang

----
CategoryDirectories DiredMode
4 changes: 2 additions & 2 deletions DiredSync
@@ -1,4 +1,4 @@
[[Dired]] is a very useful file manager. Unfortunatlly it lacks a synchronization command.
[[Dired]] is a very useful file manager. Unfortunately it lacks a synchronization command.

[https://github.com/renard/dired-sync dired-sync] is designed to fill that missing feature.

Expand All @@ -14,7 +14,7 @@
== Installation ==

drop [https://github.com/renard/dired-sync/blob/master/dired-sync.el dired-sync.el] in your
load-path and bind (suggested) <tt>C-s S</tt> key to <tt>dired-sync</tt>:
load-path and bind (suggested) <tt>C-c S</tt> key to <tt>dired-sync</tt>:

{{{
(when (require 'dired-sync nil t)
Expand Down
2 changes: 2 additions & 0 deletions FrameModes
Expand Up @@ -43,6 +43,8 @@ The properties of all frames are user-configurable using variables.

This section describes commands (interactive functions) dealing with frames.


[:frame-cmds.el]
== frame-cmds.el ==

DrewAdams has written <tt>[[frame-cmds.el]]</tt>, a library of frame commands. Using the suggested key bindings, you can:
Expand Down
2 changes: 1 addition & 1 deletion Icicles_-_Customization_and_General_Tips
Expand Up @@ -1153,7 +1153,7 @@ If user option '''`icicle-search-replace-whole-candidate-flag''''
within the current search context, when you perform replacement
during '''Icicles''' searching (e.g. `S-C-RET'). If the value is
non-`nil' (the default value), then the entire ''search context'' is
replaced, instead. You can use '''`##C-,##'''' at any time during
replaced, instead. You can use '''`##M-_##'''' at any time during
searching and replacing, to ''toggle'' the value. See [[Icicles - Search-And-Replace]].

----
Expand Down
2 changes: 1 addition & 1 deletion Icicles_-_Other_Search_Commands
Expand Up @@ -161,7 +161,7 @@ In Emacs 22 and later, you can also ''replace'' search-hit text. You
can replace the entire `grep' regexp match or just the part of it
that matches your current input, depending on the value of [[option]]
'''`<tt>[[Icicles - Customization and General Tips#icicle-search-replace-whole-candidate-flag|icicle-search-replace-whole-candidate-flag]]</tt>'''' (which you can toggle
with `##C-,##'). Replacement acts here just as it does for
with `##M-_##'). Replacement acts here just as it does for
`icicle-search'.

You can also use a non-`grep' compilation buffer to perform search and replace. Use it, for example, to correct errors in source files.
Expand Down
4 changes: 2 additions & 2 deletions Icicles_-_Search-And-Replace
Expand Up @@ -69,11 +69,11 @@ default, this is `nil', which means that `\' character sequences
in replacement text are intrepreted as for
`query-replace-regexp'.

* '''`##C-,##'''' toggles
* '''`##M-_##'''' toggles
'''`icicle-search-replace-whole-candidate-flag''''. By default, this is non-`nil', which means that the
entire current [[search context]] is replaced, that is, whatever
matches the context regexp that you entered initially using
`RET'. However, you can use `##C-,##' anytime during searching to toggle between
`RET'. However, you can use `##M-_##' anytime during searching to toggle between
this default behavior and replacement of whatever your current
minibuffer input matches.

Expand Down
2 changes: 1 addition & 1 deletion Icicles_-_Search_Commands,_Overview
Expand Up @@ -428,7 +428,7 @@ regexp subgroups. The [[face]]s for these are, respectively:
replaced, within the current search context, when you perform
replacement (e.g. `C-S-RET'). If the value is non-`nil' (the
default value), then the
entire search context is replaced, instead. You can use '''`##C-,##'''' at
entire search context is replaced, instead. You can use '''`##M-_##'''' at
any time during searching and replacing, to toggle the value.

* Command `icicle-search-word' (bound to `##C-c $##') always searches
Expand Down
37 changes: 37 additions & 0 deletions NotMuch
Expand Up @@ -4,7 +4,44 @@ Notmuch comes bundled with an emacs mail client that relies on message-mode for

For more information about Notmuch, see [[http://notmuchmail.org/|the official wiki]].

== NotMuch and Gnus ==
It is also possible to use NotMuch to index mail that is otherwise read in [[Gnus]]. See http://article.gmane.org/gmane.emacs.gnus.user/13308 for more details.


http://roland.entierement.nu/blog/2010/09/08/gnus-dovecot-offlineimap-search-a-howto.html
suggests one way of setting up notmuch to work with [[Gnus]]. However,
the functions for going from a notmuch result to the message in gnus
needed some fiddling with on my end:

(defun notmuch-file-to-group (file)
"Calculate the Gnus group name from the given file name."
(let ((group (file-name-directory (directory-file-name (file-name-directory file)))))
(setq group (replace-regexp-in-string ".*/.Maildir/" "nnimap+local:" group))
(setq group (replace-regexp-in-string "/$" "" group))
(if (string-match ":$" group)
(concat group "INBOX")
(replace-regexp-in-string ":\\." ":" group))
;; Seems like we don't even need this part:
(setq group (replace-regexp-in-string "nnimap\\+local:\\.?" "" group))))

(defun notmuch-goto-message-in-gnus ()
"Open a summary buffer containing the current notmuch
article."
(interactive)
(unless (gnus-alive-p) (with-temp-buffer (gnus)))
(let ((group (notmuch-file-to-group (notmuch-show-get-filename)))
(message-id
(replace-regexp-in-string "\"" ""
(replace-regexp-in-string "^id:" ""
(notmuch-show-get-message-id)))))
(if (and group message-id)
(progn
(gnus-summary-read-group group 1) ; have to show at least one old message
(gnus-summary-refer-article message-id)) ; simpler than org-gnus method?
(message "Couldn't get relevant infos for switching to Gnus."))))

(define-key notmuch-show-mode-map (kbd "C-c C-c") 'notmuch-goto-message-in-gnus)


----
CategoryMail
32 changes: 32 additions & 0 deletions VersionControl
Expand Up @@ -40,6 +40,38 @@ Also, don't forget the powerful ediff--revision command which is part of the edi
[new]
Be aware that the CVS mode will keep old revisions of your files in the current directory, even if you are using a BackupDirectory. This makes sense from a CVS point of view but can be maddening from a "no really, don't litter my fs tree" point of view. If I can find a fix for this that doesn't break CVS mode, I'll post it here. -- DavidBrady

[new]
Here is my two cents

(defun my-log-view-diff (beg end)
"Overwrite the default log-view-diff, make use of
log-view-get-marked --lgfang"

(interactive
(if (log-view-get-marked) (log-view-get-marked)
(list (log-view-current-tag (point))
(log-view-current-tag (point)))))
(when (string-equal beg end)
(save-excursion
(goto-char (point)) ;not marked
(log-view-msg-next)
(setq end (log-view-current-tag))))
(vc-version-diff
(if log-view-per-file-logs
(list (log-view-current-file))
log-view-vc-fileset)
beg end))
(eval-after-load "log-view" '(fset 'log-view-diff 'my-log-view-diff))
(defun my-log-view-revision ()
"get marked revision (or revision at point) --lgfang"
(interactive)
(let ((revision (if (log-view-get-marked) (car (log-view-get-marked))
(log-view-current-tag (point)))))
(switch-to-buffer-other-window
(vc-find-revision (log-view-current-file) revision))))
(eval-after-load "log-view"
'(define-key log-view-mode-map "v" 'my-log-view-revision))

----
See also
VersionControlAlways.
Expand Down
2 changes: 1 addition & 1 deletion ViniciusJoseLatorre
Expand Up @@ -129,7 +129,7 @@ code.

</pre>
; ([Self:action=history;id=whitespace.el history]) Download:whitespace.el (WhiteSpace) : Minor mode to visualize blanks (TAB, (HARD) SPACE and NEWLINE).
: .:: ''v13.1'' :: ''part of GNU Emacs'' ::.
: .:: ''v13.2'' :: ''part of GNU Emacs'' ::.
: It runs on Emacs 24.
: **Note 1:** //The source here in EmacsWiki was modified to run on Emacs 21, 22, 23 and 24.//
: **Note 2:** //This package replaces// BlankMode.
Expand Down
4 changes: 2 additions & 2 deletions WhiteSpace
@@ -1,6 +1,6 @@
This page describes package Lisp:whitespace.el, by ViniciusJoseLatorre.

: .:: ''v13.1'' :: ''part of GNU Emacs'' ::.
: .:: ''v13.2'' :: ''part of GNU Emacs'' ::.

: It runs on Emacs 24.

Expand Down Expand Up @@ -29,7 +29,7 @@ This package is a minor mode to visualize blanks (TAB, (HARD) SPACE and NEWLINE)
WhiteSpace uses two ways to visualize blanks: [[Face]]s and display table.

* [[Face]]s are used to highlight the background with a color. WhiteSpace uses
font-lock to highlight blank characters.
font-lock to highlight blank characters, see FontLockMode.

* Display table changes the way a character is displayed, that is,
it provides a visual mark for characters,
Expand Down

0 comments on commit e02c1ce

Please sign in to comment.