Iosu Arizkuren | 1 Jul 2002 14:08
Picon
Favicon

.emacs file


Hi, could someone tell me where in the tarball is the .emacs file?, cause I 
have to hack it and I do not know where it is.
Thanks,
regards,
Iosu.

_________________________________________________________________
MSN. Más Útil cada Día. http://www.msn.es/intmap/
Kevin Dziulko | 1 Jul 2002 14:32
Picon
Favicon

Re: A Few Small Questions

Scott

Here is an excerpt from the GNU Emacs Lisp Reference Manual:

Just what parameters a frame has depends on what display mechanism it uses. 
Here is a table of the parameters of an X window frame:

name
The name of the frame.

left
The screen position of the left edge, in pixels.

top
The screen position of the top edge, in pixels.

height
The height of the frame contents, in pixels.

width
The width of the frame contents, in pixels.

window-id
The number of the X window for the frame.

minibuffer
Whether this frame has its own minibuffer. The value t means yes, nil means 
no, only means this frame is just a minibuffer, a minibuffer window (in some 
other frame) means the new frame uses that minibuffer.

(Continue reading)

Dmitry Trunikov | 1 Jul 2002 14:24

jsp colorization

Hi ALL.
Tell me please how can I turn on syntax highliting for *.jsp (Java 
Server Pages) files?
Has emacs support for this type of files?
If it hasn't then how can I tell emacs that jsp and html files is the same?

Thanks.

P.S.  emacs 21.1/linux
Dmitri.Minaev | 1 Jul 2002 16:10
Picon

RE: jsp colorization

html-helper-mode.el by Nelson Minar (maintained by 'Saint' Lauri) does this.
Just say:

(require 'html-helper-mode)
(setq auto-mode-alist (cons '("\\.jsp$" . jsp-html-helper-mode)
auto-mode-alist))

--
With best regards,
Dmitri Minaev

> -----Original Message-----
> From: Dmitry Trunikov [mailto:tda <at> quasarlabs.com]
> Sent: Monday, July 01, 2002 1:24 PM
> To: help-gnu-emacs <at> gnu.org
> Subject: jsp colorization
> 
> 
> Hi ALL.
> Tell me please how can I turn on syntax highliting for *.jsp (Java 
> Server Pages) files?
> Has emacs support for this type of files?
> If it hasn't then how can I tell emacs that jsp and html 
> files is the same?
> 
> Thanks.
> 
> P.S.  emacs 21.1/linux
> 
> 
(Continue reading)

David Forrest | 1 Jul 2002 12:02

Re: .emacs file

On Mon, 1 Jul 2002, Iosu Arizkuren wrote:
> Hi, could someone tell me where in the tarball is the .emacs file?, cause I
> have to hack it and I do not know where it is.
> Thanks,
> regards,
> Iosu.

It does not exist in a default install, so you will have to create it.  In
unix, it is looked for at $HOME/.emacs

Dave
--

-- 
 Dave Forrest                                   drf5n <at> virginia.edu
 (434)296-7283h 924-3954w      http://mug.sys.virginia.edu/~drf5n/
piotr.kozaczewski | 2 Jul 2002 13:02

gdb in emacs

Good afternoon.

I downloaded the latest WinNT version of emacs (21.2) and the latest
version of gdb (2002-04-11) for cygwin.
I tried to debug a C++ program (compiled with g++, with -g turned on)
within emacs and it did not work good enough.
gdb did neither show the breakpoints nor highlight the current source line.
I suppose, emacs cannot interpret the data being sent back from gdb,
or gdb does not send required data to emacs.
Could anybody help me?

Thanks in advance,
Piotr Kozaczewski
Todd Kokoszka | 2 Jul 2002 13:22

Re: gdb in emacs


I think you may get more help if you were to post to the windows emacs
group. I use gdb under emacs a lot under Unix. I usually it mostly with C
and it's been excellent.

Todd

On Tue 02 Jul 2002 at 13:02:37 +0200, piotr.kozaczewski <at> power.alstom.com wrote:
> 
> Good afternoon.
> 
> I downloaded the latest WinNT version of emacs (21.2) and the latest
> version of gdb (2002-04-11) for cygwin.
> I tried to debug a C++ program (compiled with g++, with -g turned on)
> within emacs and it did not work good enough.
> gdb did neither show the breakpoints nor highlight the current source line.
> I suppose, emacs cannot interpret the data being sent back from gdb,
> or gdb does not send required data to emacs.
> Could anybody help me?
> 
> Thanks in advance,
> Piotr Kozaczewski
> 
> 
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs <at> gnu.org
> http://mail.gnu.org/mailman/listinfo/help-gnu-emacs

--

-- 
(Continue reading)

Gareth Walker | 2 Jul 2002 13:59
Picon
Favicon

commenting lines

Hi all -- I know it is possible to comment out text in Emacs with 
`comment-region', but is it possible to specify what goes at the 
beginning of each line?  I would like to `label' regions of my text 
files with different things.

best wishes

Gareth
Arnaldo Mandel | 2 Jul 2002 14:16
Picon
Picon
Favicon

RE: commenting lines

Gareth Walker wrote (on Jul 2, 2002):
 > Hi all -- I know it is possible to comment out text in Emacs with 
 > `comment-region', but is it possible to specify what goes at the 
 > beginning of each line?  I would like to `label' regions of my text 
 > files with different things.

This oldie is quite reliable, useful enough to deserve a key-binding.

;; Christopher North-Keys, 1989
(defun prefix-region (start end string)
  "Insert STRING, default '> ', at the start of each line
in or intersecting region while preserving indentation.
Called from a program, takes three arguments, START, END and STRING."
  (interactive "r\nsString:  ")
  (if (or (equal string "") (equal string nil))
      (setq string "> "))
  ;; Adjust start and end to extremes of
  ;; lines so lines don't get broken.
  (goto-char end)
  (end-of-line)
  (setq end (point))
  (goto-char start)
  (beginning-of-line)
  (setq start (point))
  ;; There is another command, replace-regexp, that did not work well.
  ;; If you narrowed as one would expect, you could not widen to the
  ;; previous narrow.  Saving the old narrow extremes failed, as this
  ;; routine expands the region.  Sadmaking.
  (let (line)
    (setq lines (count-lines start end))
(Continue reading)

Greg Hill | 2 Jul 2002 20:03

Re: commenting lines

Gareth,

I have the following in my .emacs, which I use for that sort of 
thing.  Just set mark at the beginning of the first line you want to 
comment out, move point to the beginning of the last line, invoke the 
command, and type in the string you want to use as a comment.

(global-set-key [?\C-\A-\M-s] (lambda (string start end)
                                               (interactive "sString: \nr")
                                               (string-rectangle start 
end string)))

I use the following for removing those comments.  Set mark at the 
beginning of the first line you want to uncomment, move point to the 
last line just after the last character of the comment, and invoke 
the command.

(global-set-key [?\C-\A-\M-d] (lambda (start end)
                                                            (interactive "r")

(delete-rectangle start end)))

--Greg

At 12:59 PM +0100 7/2/02, Gareth Walker wrote:
>Hi all -- I know it is possible to comment out text in Emacs with 
>`comment-region', but is it possible to specify what goes at the 
>beginning of each line?  I would like to `label' regions of my text 
>files with different things.
>
(Continue reading)


Gmane