You are viewing emacs

Emacs [entries|archive|friends|userinfo]
Emacs

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

diary file [Oct. 17th, 2009|02:22 pm]

cema
What is the preferred way to customize the location of a diary file?

In general, what is the preferred way to keep a non-default value of a defcustom variable between sessions, specifically a variable that is defcustom'ed in a standard package? (Personal use, not site-wide.)
link5 comments|post comment

Facebook.el v0.0.3 [Oct. 7th, 2009|09:34 am]

phuff
Here it is, the latest version of facebook-goodness in emacs. Thanks to Rudi Schlatte for a host of patches that made it better. Check out the new: facebook-get-friends-status which gets the most recent statuses for all your friends (without all that annoying wall cruft about gangsters and farm animals).
linkpost comment

How To Define Templates In YASnippet [Feb. 18th, 2009|04:10 pm]

xah_lee
perm url
http://xahlee.org/emacs/yasnippet_templates_howto.html

plain text version follows:
------------

How To Define Templates In YASnippet

Xah Lee, 2009-02-18

This page shows you how to define your own templates for emacs's YASnippet template system.

YASnippet is a template system for emacs. It allows you to type a abbrevation and automatically expand the abbreviation into function templates. Bundled language templates includes: C, C++, C#, Perl, Python, Ruby, SQL, LaTeX, HTML, CSS and more. But you can define your own template set for your own language, or for any text that you need a template.

You will need to have yasnippet installed. If you haven't already, see: http://code.google.com/p/yasnippet/.

Read more...Collapse )
linkpost comment

Emacs Prolog Major Mode Fixed [Feb. 7th, 2009|11:28 pm]

jkndrkn
Hello Friends

You may remember this issue.

I've been communicating with Stefan Bruda, maintainer of the prolog.el major mode and he decided to make the fix himself :) I've tested it and sent him confirmation that the fix works. He may soon post version 1.18 with the included fix to the official download page.
linkpost comment

Updating Atom/RSS with Elisp [Jan. 21st, 2009|03:03 pm]

xah_lee
This page describes a real world example of using emacs to update a web syndication (RSS/Atom) page. If you don't know elisp, see: Emacs Lisp Basics.
The Problem

Summary

I want to write a command, so that, when invoked, the current selected text will be added as a entry in a RSS/Atom file.

This lesson will show you how write a command that grabs the region text, switch buffer, search string to locate position for inserting text, insert the text, and update date field in a file.

perm url: http://xahlee.org/emacs/elisp_update_atom.html
linkpost comment

A Emacs Frustration (blogger package) [Jan. 9th, 2009|01:05 pm]

xah_lee
A Emacs Frustration (blogger package)

perm url http://xahlee.org/UnixResource_dir/writ/emacs_blogger_package_pain.html

plain text version follows -----------------------

A Emacs Frustration (blogger package)

Xah Lee, 2009-01-09

Spent like 2 hours trying to get a emacs package to work, which would allow me to write my blog in emacs and upload it to blogger.com (aka blogspot.com) without going thru browser. I was mother fucking pissed by the fucking fuckface tech geekers.

The packages in question are: “blogger.el” by Mark Hershberger at “http://www.emacswiki.org/emacs/BloggerMode” and “weblogger.el” by Mark Hershberger at “http://www.emacswiki.org/emacs/WebloggerMode”

Read more...Collapse )
link4 comments|post comment

Suggestions on Emacs's Line-Cutting Commands [Dec. 11th, 2008|12:57 pm]

xah_lee
Suggestions on Emacs's Line-Cutting Commands

Xah Lee, 2008-12-10

Emacs has a command fill-paragraph (Alt+q) that inserts a newline char for every run of about 70 chars. This command is especially useful when writing email or plain text based report. Emacs also have fill-region, which is to be used on a text selection. Emacs also have fill-buffer, that does to a whole file's text. However, there are some usability problems with these commands. This page discuss the problems and some suggestions.

• Suggestions on Emacs's Line-Cutting Commands http://xahlee.org/emacs/modernization_fill-paragraph.html

plain text version follows below

Read more...Collapse )
linkpost comment

Suggestions on Emacs's mark-word Command [Dec. 9th, 2008|01:16 pm]

xah_lee
• Suggestions on Emacs's mark-word Command

http://xahlee.org/emacs/modernization_mark-word.html

plain text version follows. (formatting is screwed up)

------------------------- Suggestions on Emacs's mark-word Command

Xah Lee, 2008-12-09

Emacs has a command to select the current word, mark-word, with default shortcut of “Alt+@”. Selecting the current word is a frequently needed operation. However, emacs's mark-word command is inconvenient. It does not select the whole word. It only select from the cursor position to the end of the word. For example, if your word is “transmission”, and your cursor is at the “m”, then it will select just “mission”. To select the whole word, you need to move the cursor to the beginning of the word first. Also, mark-word has a feature that if you repeat the command, then it extend the selection to the next word to the right.

Here we suggest a improvement. We want a command that select the whole word. When repeated, it should select the next larger syntactic unit. In human languages, that would be sentence, then paragraph, then whole buffer. In computer languages, the sequence would be: current identifier, current expression, current construct (or line), current block or defun. Similarly, if the lang is lisp, it simply extend the selection to the next outer parens. For detailed example of this, see: A Text Editor Feature: Extend Selection By Semantic Unit.

Read more...Collapse )
linkpost comment

How To Process A File Line By Line In Elisp [Dec. 6th, 2008|01:05 am]

xah_lee
• How To Process A File Line By Line In Elisp http://xahlee.org/emacs/elisp_process_lines.html

plain text version follows (formatting is screwed up)

Read more...Collapse )
linkpost comment

Problems with Emacs Prolog Major Mode [Dec. 3rd, 2008|01:14 pm]

jkndrkn
It seems that this site is the location of the most popular Emacs mode for Prolog. I've tried both the Debian package and the source distribution and neither of them seem to do a good job at syntax highlighting. For example, syntax of the form foo(X). (a functor) is correctly highlighted if it is a) the only functor on a line and b) not preceded by a tab or space character. I have GLOBAL-FONT-LOCK-MODE set to T and some Lisp/SLIME-specific stuff in my .emacs file. Nothing else.

Screenshot:
Emacs Prolog Mode Syntax Coloring Issues

Note how color(5,green,b). is not colored and how all indented functors starting with adjacent(X,Y). are not colored.


My question: Has anyone experienced this problem? If so, have you fixed it with an alternative Prolog mode? I know Lisp syntax. How easy is it to wade into an Emacs mode definition file and modify it so it works as desired? Will I have to face a high learning curve if I try to do so?
link3 comments|post comment

navigation
[ viewing | most recent entries ]
[ go | earlier ]