<?xml version="1.0" encoding="windows-1252"?>
<node id="368552" title="olivierp's scratchpad" created="2004-06-21 16:55:26" updated="2005-08-12 01:08:06">
<type id="182711">
scratchpad</type>
<author id="182251">
olivierp</author>
<data>
<field name="doctext">
&lt;div&gt;
[peacemaker1820] This could help identify what you have in that string:
&lt;code&gt;
use Unicode::CharName qw/uname/;
use Unicode::UCD qw/charinfo/;

my $value = &lt;what you are looking at&gt;
my $c;
print "Unicode Charname:\tHexValue:\tCharCode\n";
for (split //, $value) {
  $c = ord($_);
  print uname($c) .":\t" . charinfo($c)-&gt;{code} . ":\t$c\n";
}
&lt;/code&gt;
&lt;/div&gt;
&lt;div&gt;
[graq], I can't help for 1 (don't use CVS, as I do short scripts 95% of the time)&lt;br/&gt;
However, here's the simple stuff I have in my .emacs for folding &amp; cperl:&lt;br/&gt;
&lt;code&gt;
;; I stick my personal libs here:
(setq load-path (cons "~/elisp/" load-path))

;; Some new colors for Font-lock.
(require 'font-lock)

;; This thing is great !
(require 'folding)
(autoload 'folding-mode          "folding" "Folding mode" t)

;; I prefer cperl to the usual perl-mode
(autoload 'perl-mode "cperl-mode" "alternate mode for editing Perl programs" t)
(setq cperl-hairy t)
(setq auto-mode-alist (cons '("\\.[Pp][LlMm]\\'" . cperl-mode) auto-mode-alist))
(setq auto-mode-alist (cons '("\\.t\\'" . cperl-mode) auto-mode-alist))
(setq auto-mode-alist (cons '("\\.pod\\'" . cperl-mode) auto-mode-alist))
&lt;/code&gt;
&lt;br/&gt;
To mark a block (or whatever) for folding:
&lt;code&gt;
# Begin a fold mark:

# {{{ A space after the three { is required.
sub folded{ print "This is hidden with folding-mode";}
# }}}

# The  "# }}}" ends the fold mark
&lt;/code&gt;
The above, when folding is active displays this:
&lt;code&gt;
# Begin a fold mark:

# {{{ A space after the three { is required....

# The  "# }}}" ends the fold mark
&lt;/code&gt;
As for "creating" a new empty file: C-x C-f&lt;br/&gt;
Then enter a file name that doesn't exist in the current directory :)&lt;br/&gt;
If in doubt, type one or 2 chars, and hit TAB twice ... emacs has auto-completion !
HTH.
&lt;/div&gt;
&lt;br /&gt;[id://325697]
&lt;br /&gt;[id://415955]</field>
</data>
</node>
