Emacs実践入門 Perl編
by
https://speakerdeck.com/typester
Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
&NBDT࣮ફೖ 1FSMฤ :"1$"TJB !UZQFTUFS
Slide 2
Slide 2 text
Πϯετʔϧ .BDͷਓ͓͢͢Ί brew tap railwaycat/emacsmacport brew install emacs-mac ΊΜͲ͍ਓόΠφϦμϯϩʔυ͋ΔΑ IUUQTHJUIVCDPNSBJMXBZDBUFNBDTNBDQPSU
Slide 3
Slide 3 text
Πϯετʔϧ .BDͷਓɺຊՈͷ͕ྑ͍ਓ ./configure --with-ns make install OFYUTUFQσΟϨΫτϦʹ&NBDTBQQ͕Ͱ͖Δɻ
Slide 4
Slide 4 text
Πϯετʔϧ -JOVYͱ͔ͷਓ ./configure make install
Slide 5
Slide 5 text
αϯϓϧઃఆ &NBDTͷઃఆ͕खݩʹͳ͍ਓ git clone https://github.com/typester/ emacs-config-sample.git ~/.emacs.d
Slide 6
Slide 6 text
αϯϓϧઃఆ &NBDTͷઃఆ͕͋Δਓదͳͱ͜ΖʹDMPOFͰ0, git clone https://github.com/typester/ emacs-config-sample.git ~/typester-emacs
Slide 7
Slide 7 text
ىಈʂ dFNBDTEʹDMPOFͨ͠ਓ emacs ଞͷॴʹDMPOFͨ͠ਓ emacs -q -l ~/typester-config/init.el
Slide 8
Slide 8 text
ઃఆϑΝΠϧ ~/.emacs.el (.emacs.elc) ~/.emacs ~/.emacs.d/init.el (init.elc) ~/.emacs.d/init
Slide 9
Slide 9 text
ઃఆϑΝΠϧ ͓͢͢Ί ~/.emacs.d/init.el FNBDTE͚ͩΛόʔδϣϯཧ͢Εྑ͍͔Βָ
Slide 10
Slide 10 text
ૢ࡞ ऴྃ C-x C-c ࠔͬͨ࣌ C-g
Slide 11
Slide 11 text
ૢ࡞ ΧʔιϧҠಈ C-f → C-b ← C-p ↑ C-n ↓ C-a ߦ಄ C-e ߦ ͜͜Βล$PDPBΞϓϦͳΒେମ͑Δͷ̋
Slide 12
Slide 12 text
ૢ࡞ ϑΝΠϧ։͘ C-x C-f อଘ C-x C-s όοϑΝΓସ͑ C-x C-b όοϑΝด͡Δ C-x k
Slide 13
Slide 13 text
ૢ࡞ όοϑΝׂ C-x 2 C-x 3 όοϑΝׂͨ͠ͷΛҠಈ C-x o όοϑΝׂͨ͠ͷΛด͡Δ C-x 0 ݱࡏͷόοϑΝͷΈ͢Δ C-x 1
Slide 14
Slide 14 text
νϡʔτϦΞϧ M-x help-with-tutorial
Slide 15
Slide 15 text
υΩϡϝϯτɾϚχϡΞϧ M-x info
Slide 16
Slide 16 text
ઃఆৄࡉ el-get exec-path helm (anything) perl-completion flymake quickrun
Slide 17
Slide 17 text
FMHFU w &NBDT-JTQΛཧ͢ΔͨΊͷύοέʔδϚωʔδϟͷͻ ͱͭɻ w IPNFCSFXͬΆ͍ͷ w ͦΜͳʹελϯμʔυͰͳ͍ স w %JTUSJCVUFE4FUVQͱ͍͏ػೳ͕͖ͳͷͰ͍ͬͯΔ ͜ͷػೳ$BSUPOͷΑ͏ͳͷ
Slide 18
Slide 18 text
FYFDQBUI w IPNFCSFXɺQMFOWͳͲɺ֎෦1"5)௨͢߹ɺ 1"5)ͷઃఆͷଞʹɺFYFDQBUIͷՃ͕ඞཁ
Slide 19
Slide 19 text
IFMN BOZUIJOH w બީิΛΠϯΫϦϝϯλϧݕࡧͭͭ͠બͰ͖ΔΠϯ λϑΣεʔΛఏڙͯ͘͠ΕΔFMJTQ w (helm-mode 1)ͱ͢ΔͱόοϑΝΓସ͑ɺϑΝΠ ϧΛ։͘ΠϯλϑΣʔεIFMNʹͳΔ
Slide 20
Slide 20 text
QFSMDPNQMFUJPO w !JNBLBEP࡞ w 1FSMͷϞδϡʔϧ໊ɺ໊ؔɺϝιου໊ͳͲΛɺ BOZUIJOHΠϯλϑΣʔε PSBVUPDPNQMFUF Ͱ͍Ζ͍Ζ ิͰ͖ΔFMJTQ w ϞδϡʔϧͷυΩϡϝϯτ PSιʔε ΛݟΔػೳ͕ಛʹ ศརͱ͍͏͔ඞਢʂ
Slide 21
Slide 21 text
qZNBLF w γϯλοΫενΣοΫͭͭ͠ίʔυ͕͔͚Δ w &NBDTσϑΥϧτͰɺ1FSMͷγϯλοΫενΣοΫʹҰ ԠରԠ͍ͯ͠ΔͷͰɺΧδϡΞϧʹࢼ͍ͨ͠ͳΒ1FSM ͷϑΝΠϧΛ։͍ͨঢ়ଶͰM-x flymake-modeͱ͢Ε ྑ͍ w ͳͥʑͱઃఆΛॻ͍͍ͯΔ͔
Slide 22
Slide 22 text
RVJDLSVO w ݴޠͷڍಈΛࢼ͍ͨ࣌͠ͳͲɺͪΐͬͱͨ͠εΫϦϓτ Λॻ͍ͯࢼ͢͜ͱ͕Α͋͘Δ w γΣϧʹ࣮ͬͯߦ͢Δͷ͕ΊΜͲ͍͘͞ w Έ͍ͨͳͱ͖RVJDLSVOΛ͏ͱ͓खܰ
Slide 23
Slide 23 text
IFMNQSPKFDU w ͍͍ͪͪ$Y$Gͯ͠ϑΝΠϧ։͘ͷΊΜͲ͍͘͞ w ϓϩδΣΫτͷϑΝΠϧΛIFMNͰબͯ͠։͚ΔFMJTQ
Slide 24
Slide 24 text
FNBDTTFSWFS w ͍Ζ͍ΖઃఆΛॻ͍͍ͯ͘ͱ&NBDTͷىಈ͕͘ͳΔ w Ұ্ཱͪ͛ͨ&NBDTऴྃ͠ͳ͍ʂ w &NBDTEBFNPOͱ͔͋ΔΑ
Slide 25
Slide 25 text
ͬͱྑ͍ิ w IUUQTHJUIVCDPNBLJPFNBDTQMTFOTF w FMHFU͚ͩͩͱΠϯετʔϧͰ͖ͳ͍ͷͰઆ໌͠·ͤΜ Ͱ͕ͨ͠ɺิ͚ͩͳΒͪ͜Βͷ΄͏͕༏लͱࢥΘΕ· ͢ʂ
Slide 26
Slide 26 text
&NBDT࣮ફೖຊฤ w IUUQXXXBNB[PODPKQHQQSPEVDU w &NBDTͷجૅ͔Βɺ͍Ζ͍Ζͳઃఆͷ հɺͦͯࣗ͠Ͱ&NBDTΛ͍͜ͳ͍ͯ͠ ͨ͘Ίͷಋઢ͕͏·͘ἧͬͨ
Slide 27
Slide 27 text
ใιʔε w UPNPZBࢯͷϒϩά IUUQEIBUFOBOFKQUPNPZB w TZPIFYࢯͷϒϩά IUUQEIBUFOBOFKQTZPIFY w -JOHS IUUQMJOHSDPNSPPNFNBDT
Slide 28
Slide 28 text
ͷઃఆ w IUUQTHJUIVCDPNUZQFTUFSFNBDTDPOpH
Slide 29
Slide 29 text
ɻ