Showing posts with label emacs. Show all posts
Showing posts with label emacs. Show all posts
Thursday, October 31, 2013
Emacs and VC AKA Version Control
http://www.gnu.org/software/emacs/manual/html_node/emacs/Customizing-VC.html
I am working for a customer
They are using CVS on AIX, but as I am actually the only Emacs user there, I don't really bother going through the set-up for using Emacs with CVS on WinXP.
Recently I looked into *tramp/pscp HOSTNAME*, and I decided I would be able cutting down on my waiting time, if I drastically reduced the list of files and directories being checked through VC in that environment.
I really don't mind the VC overhead on OS X or (SUSE) Linux, but in that difficult environment I rather want to proceed as described.
I found vc-handled-backends and customized it the Emacs way, and I was done.
I am working for a customer
- on WinXP
- with GNU Emacs 24.2.1
- through Tramp
- resp. putty plink ("pscp")
- on AIX files.
They are using CVS on AIX, but as I am actually the only Emacs user there, I don't really bother going through the set-up for using Emacs with CVS on WinXP.
Recently I looked into *tramp/pscp HOSTNAME*, and I decided I would be able cutting down on my waiting time, if I drastically reduced the list of files and directories being checked through VC in that environment.
I really don't mind the VC overhead on OS X or (SUSE) Linux, but in that difficult environment I rather want to proceed as described.
I found vc-handled-backends and customized it the Emacs way, and I was done.
Labels:
emacs,
version control,
WinXP
Wednesday, September 18, 2013
how to let GNU Emacs "Untabify Upon Save"?
EmacsWiki: Untabify Upon Save
There are colleagues, that don't want to see tabs in scripts sources, that I edited.
Apparently there isn't a nice switch saying, that there shouldn't be tabs in a certain file.
There are colleagues, that don't want to see tabs in scripts sources, that I edited.
Apparently there isn't a nice switch saying, that there shouldn't be tabs in a certain file.
Labels:
emacs,
to be continued
Tuesday, September 10, 2013
my latest GNU Emacs on OS X: Emacs Daily Build 2013-09-11
Emacs Daily Build 2013-09-11 »:
Universal Binary built on Mac OS X 10.6.8, 45.89 MB.
See the differences from the last build.
Universal Binary built on Mac OS X 10.6.8, 45.89 MB.
See the differences from the last build.
Labels:
emacs
Tuesday, September 3, 2013
Wednesday, June 5, 2013
GNU Emacs and case-(in)sensitive searching
Search Case - GNU Emacs Manual
Sometimes you are switching inadvertently to "case-sensitive searching" (by using an upper case letter within your search), and you want to switch back to "case-insensitive searching", i.e. case-folding. According to the manual, you have to set case-fold-search to t.
Sometimes you are switching inadvertently to "case-sensitive searching" (by using an upper case letter within your search), and you want to switch back to "case-insensitive searching", i.e. case-folding. According to the manual, you have to set case-fold-search to t.
Labels:
emacs
Thursday, May 23, 2013
O'Reilly Media book: Learning GNU Emacs, 3rd Edition
Learning GNU Emacs, 3rd Edition - O'Reilly Media
Chapter 7: Simple Text Formatting and Specialized Editing
- Using Tabs
- Indenting Text
- Centering Text
- Using Outline Mode
- Rectangle Editing
- Making Simple Drawings (M-x edit-picture -> picture mode)
For creating a vertical line switch to picture mode and change the default direction. Sometimes I need this for creating a table from a list of lines.
Wednesday, March 27, 2013
the "Table editor for Emacs"
Table
My minor ongoing problem with it: Whenever I copy an area from a table cell, the buffer gets flagged as "modified". That's ugly, because afterwards you wonder, what got changed and you don't see it of course.
My minor ongoing problem with it: Whenever I copy an area from a table cell, the buffer gets flagged as "modified". That's ugly, because afterwards you wonder, what got changed and you don't see it of course.
Labels:
emacs
Saturday, March 16, 2013
Wednesday, March 13, 2013
Emacs: tabs vs. spaces – how to make all indentation from spaces only
Just Spaces - GNU Emacs Manual
resp.
resp.
(setq indent-tabs-mode nil)
resp.
M-x set-variable …
resp.
# Local variables:
# indent-tabs-mode:nil
# End:
Labels:
emacs
Sunday, February 24, 2013
GNU Emacs: how to activate time stamps?
Time Stamps - GNU Emacs Manual
My recipe:
My recipe:
(add-hook 'write-file-hooks 'time-stamp)I actually think, I already bookmarked this recipe on my blog a while ago, but I cannot find it.
Labels:
emacs
Friday, December 28, 2012
emacs, CEDET, eieio – version conflicts
GNU emacs 24.1 comes with eieio-1.3.
If I have my own CEDET-1.1, which comes with eieio-1.4, and I try to load it "as early as possible", emacs's loading process still says: "Outdated eieio 1.3 just installed".
I think I started with CEDET because of Gnus. But does Gnus need the modern eieio-1.4 at all?
If I have my own CEDET-1.1, which comes with eieio-1.4, and I try to load it "as early as possible", emacs's loading process still says: "Outdated eieio 1.3 just installed".
I think I started with CEDET because of Gnus. But does Gnus need the modern eieio-1.4 at all?
when did I mention last, how much I love editing an XML file using emacs and its nxml-mode?
It is so much techie fun!!!
Wednesday, October 10, 2012
Emacs + putty + TRAMP = you can edit your UNIX files remotely on Windows
TRAMP User Manual
TRAMP extends the capabilities of the emacs "directory editor" (dired) to allow you to also deal with remote files. "Remote" as in:
TRAMP extends the capabilities of the emacs "directory editor" (dired) to allow you to also deal with remote files. "Remote" as in:
- you can reach the file or directory through ssh
- or sftp
- or ftp
- or …
SSH on Windows – PuTTY:
On Windows platforms it can make use of the PuTTY family of utilities in order to achieve ssh and sftp tasks.
The TRAMP user manual recommends using scpc resp. pscpc instead of ssh resp. (just) plink for dealing with large files [Link]. I suggest you go for this recommendation anyway. Really! I mean it! According to my experience (having tried various ways resp. methods) plink resp. plinkx occasionally corrupt files, and you avoid that using the TRAMP method pscp, which is actually a nice combination of plinkx and PuTTY pscp, i.e. you are passing a named saved session rather than a host name to it. ("THE manual" does not mention this bit, but you should be aware of it.)
On the Windows PC at my customer's site I am not able to modify my system environment.
The putty directory is not put on PATH by the system, I am doing it within my .emacs.
Still: For some reason tramp does not search its tramp-copy-program on PATH, and at least pscp does not get found that way. The error message goes like this:
Update 2013-01-15: tramp paths with ports:
Occasionally "sitting" on a VM (VirtualBox) host I copy / access files living in a VM Linux guest, whose SSH port is forwarded to the VM host's port 2222.
VM-host $ env RSYNC_RSH='ssh -p 2222' rsync -vaz diary localhost:diary_
This is a useful emacs/tramp access path for those files:
/scpx:localhost#2222:diary
scpx and sshx as opposed to scp and ssh (without the 'x' in the end) seem to accept a port number within these emacs/tramp access paths.
Update 2013-04-30: problem with preserving emacs tramp file permissions:
Somebody else experiences this problem as well [link].
Update 2013-04-30 evening:
http://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/pscp-filemodes.html : I think, this doesn't concern TRAMP, as TRAMP has its own means to enquire and set file modes.
Update 2013-10-__:
Found "vc-handled-backends" and reduced it on my Windows emacs / tramp / putty platform.
On Windows platforms it can make use of the PuTTY family of utilities in order to achieve ssh and sftp tasks.
The TRAMP user manual recommends using scpc resp. pscpc instead of ssh resp. (just) plink for dealing with large files [Link]. I suggest you go for this recommendation anyway. Really! I mean it! According to my experience (having tried various ways resp. methods) plink resp. plinkx occasionally corrupt files, and you avoid that using the TRAMP method pscp, which is actually a nice combination of plinkx and PuTTY pscp, i.e. you are passing a named saved session rather than a host name to it. ("THE manual" does not mention this bit, but you should be aware of it.)
On the Windows PC at my customer's site I am not able to modify my system environment.
The putty directory is not put on PATH by the system, I am doing it within my .emacs.
Still: For some reason tramp does not search its tramp-copy-program on PATH, and at least pscp does not get found that way. The error message goes like this:
Cannot find copy program: pscp.I found the variable tramp-methods and changed the resp. tramp-copy-program assoc to have pscp with its absolute path as its value instead of just pscp. tramp-methods cannot be "customized". add-to-list always only ends to the end of the list, so just adding a new try with a full-path-pscp would not have helped, so I rather changed .../emacs/lisp/net/tramp-loaddefs.el. Quick and dirty, I know. I will find a more appropriate way occasionally, I promise.
Update 2013-01-15: tramp paths with ports:
Occasionally "sitting" on a VM (VirtualBox) host I copy / access files living in a VM Linux guest, whose SSH port is forwarded to the VM host's port 2222.
VM-host $ env RSYNC_RSH='ssh -p 2222' rsync -vaz diary localhost:diary_
This is a useful emacs/tramp access path for those files:
/scpx:localhost#2222:diary
scpx and sshx as opposed to scp and ssh (without the 'x' in the end) seem to accept a port number within these emacs/tramp access paths.
Update 2013-04-30: problem with preserving emacs tramp file permissions:
Somebody else experiences this problem as well [link].
Update 2013-04-30 evening:
http://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/pscp-filemodes.html : I think, this doesn't concern TRAMP, as TRAMP has its own means to enquire and set file modes.
Update 2013-10-__:
Found "vc-handled-backends" and reduced it on my Windows emacs / tramp / putty platform.
Tuesday, October 2, 2012
GNU Emacs for Microsoft Windows resp. Mac OS X
O'Reilly's web page for "Learning GNU Emacs, 3rd Edition" [Link] points for Mac OS X and Windows implementations exclusively to these web pages, but pls regard both as outdated:
- http://sourceforge.net/projects/nqmacs/
- http://www.apple.com/downloads/macosx/unix_open_source/carbonemacspackage.html
Labels:
emacs,
Mac OS X,
Microsoft Windows
Thursday, September 27, 2012
how to reach the usual "alt-..." keyboard bindings with an emacs from emacsformacosx
GNU Emacs For Mac OS X – this is the emacs, I am referring to here.
OS X and emacs use the "alt" key differently, so how do I achieve on OS X within emacs what I usually achieve with "alt", like entering "[" through alt-5?
I sacrificed the right "alt" key to work the Mac OS X way (by setting ns-right-alternate-modifier to none), and the left "alt" key to work the emacs way.
Enter this within your emacs (from emacsformacosx.com) on OS X:
M-x customize-group ns
bdecaf suggested that in a thread on stackoverflow.com [Link].
Now I can enter "[" on my Austrian/German Mac keyboard through (right) alt-5.
I had waited far to long, before thoroughly investigating this.
OS X and emacs use the "alt" key differently, so how do I achieve on OS X within emacs what I usually achieve with "alt", like entering "[" through alt-5?
I sacrificed the right "alt" key to work the Mac OS X way (by setting ns-right-alternate-modifier to none), and the left "alt" key to work the emacs way.
Enter this within your emacs (from emacsformacosx.com) on OS X:
M-x customize-group ns
bdecaf suggested that in a thread on stackoverflow.com [Link].
Now I can enter "[" on my Austrian/German Mac keyboard through (right) alt-5.
I had waited far to long, before thoroughly investigating this.
Labels:
emacs,
keyboard shortcuts,
Mac OS X
Wednesday, March 28, 2012
Monday, March 26, 2012
Sunday, January 15, 2012
EmacsForMacOSX.com : GNU Emacs For Mac OS X
GNU Emacs For Mac OS X
They are also porting GNU Emacs 24, and I kind of like the idea of staying in sync with their nightly builds of that one ("Nightlies"). They have an RSS feed for that.
They are also porting GNU Emacs 24, and I kind of like the idea of staying in sync with their nightly builds of that one ("Nightlies"). They have an RSS feed for that.
Labels:
emacs,
favourite software,
Mac OS X
Subscribe to:
Posts (Atom)