[ Main Page ]

Emacs tips

通常の状態では日本語入力もままならないこともあるかもしれません。

(setq default-input-method "japanese-egg-wnn")
(set-default-coding-systems 'euc-jp)
(set-terminal-coding-system 'euc-jp)
(set-keyboard-coding-system 'euc-jp)
(set-buffer-file-coding-system 'euc-jp-unix)
(prefer-coding-system 'japanese-iso-8bit)

(global-set-key [end]  'end-of-buffer )
(global-set-key [home] 'beginning-of-buffer )
; BackSpaceが使えるように。
(define-key global-map "\C-h" 'delete-backward-char)

日本語入力ではtamago(egg)がおすすめです。ただ最近は、XIMPなどからも 入力できるようになったので、以前ほど悩むことはなくなったようです。

       <Similian>  is there a smart way to read a file to a certain string
                   bit by bit ?
       <Similian>  which loop to use?
        <rindolf>  Similian: you can read it byte by byte.
        <rindolf>  Similian: do you want to read the whole thing?
       <Similian>  no
       <Similian>  too big 200 MB
 <simcop2387-lab>  reading bit by bit is usually not supported by most
                   operating systems
        <rindolf>  Similian: then do you want to read one byte at a time?
             <ik>  or one line at a time?
       <Similian>  guess a line would be better
        <rindolf>  simcop2387-lab: it is on my rindolfOS running on Intel
                   1001.
        <rindolf>  Which was a 1-bit processor.
             <ik>  heh
             <ik>  I had a half-bit processor
             <ik>  it just stored ones
       <danieldg>  ik: that would be a zero-bit processor then
             <ik>  no no
       <danieldg>  half-bit processor stores 0's or sqrt(2)'s
             <ik>  sqrt(2) may as well be 1
 <simcop2387-lab>  rindolf: a 1 bit processor would be a hell of a thing
                   to work with
       <danieldg>  not if you can't test it unless it's one
             <ik>  We're not talking about numbers, we're talking about on
                   and off, true and false, whatever you want to call it
             <ik>  sqrt(2) is nonzero, so it's one.
        <rindolf>  danieldg: not 1/sqrt(2)?
       <danieldg>  hmm it would probably be that, yes
 <simcop2387-lab>  my proc uses sqrt[-1]!
             <ik>  may as well
       <danieldg>  ik: think quantum computers. It tests true with
                   probability 1/sqrt(2)
             <ik>  I'm not talking about a quantum computer..
       <danieldg>  well a 1/2 bit computer clearly can't be classical

    -- Bit by bit
    -- #perl, Freenode

Your teachers are always telling you to behave like adults. I wonder if they'd
like it if you did. You may be loud and disorganized, but you're very docile
compared to adults. If you actually started acting like adults, it would be
just as if a bunch of adults had been transposed into your bodies. Imagine the
reaction of an FBI agent or taxi driver or reporter to being told they had to
ask permission to go the bathroom, and only one person could go at a time. To
say nothing of the things you're taught. If a bunch of actual adults suddenly
found themselves trapped in high school, the first thing they'd do is form a
union and renegotiate all the rules with the administration.

    -- Paul Graham
    -- What You'll Wish You'd Known ( http://www.paulgraham.com/hs.html#fb10 )


Powered by UNIX fortune(6)
[ Main Page ]