Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

olivierp's scratchpad

by olivierp (Hermit)
on Jun 21, 2004 at 20:55 UTC ( #368552=scratchpad: print w/replies, xml ) Need Help??

peacemaker1820 This could help identify what you have in that string:
use Unicode::CharName qw/uname/; use Unicode::UCD qw/charinfo/; my $value = <what you are looking at> my $c; print "Unicode Charname:\tHexValue:\tCharCode\n"; for (split //, $value) { $c = ord($_); print uname($c) .":\t" . charinfo($c)->{code} . ":\t$c\n"; }
graq, I can't help for 1 (don't use CVS, as I do short scripts 95% of the time)
However, here's the simple stuff I have in my .emacs for folding & cperl:
;; 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 pro +grams" t) (setq cperl-hairy t) (setq auto-mode-alist (cons '("\\.[Pp][LlMm]\\'" . cperl-mode) auto-mo +de-alist)) (setq auto-mode-alist (cons '("\\.t\\'" . cperl-mode) auto-mode-alist) +) (setq auto-mode-alist (cons '("\\.pod\\'" . cperl-mode) auto-mode-alis +t))

To mark a block (or whatever) for folding:
# 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
The above, when folding is active displays this:
# Begin a fold mark: # {{{ A space after the three { is required.... # The "# }}}" ends the fold mark
As for "creating" a new empty file: C-x C-f
Then enter a file name that doesn't exist in the current directory :)
If in doubt, type one or 2 chars, and hit TAB twice ... emacs has auto-completion ! HTH.

PDF::API2 Examples
A new chatterbox flavour
Log In?

What's my password?
Create A New User
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (13)
As of 2017-03-30 17:56 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (362 votes). Check out past polls.