= Editplus »ç¿ëÀÚ¸¦ À§ÇÑ Emacs ·¡ÆÛ·±½º = == EditplusÀÇ ±â´É == * µð·ºÅ丮â * ¿ø°ÝÆÄÀÏ ¼öÁ¤, ÀúÀå * FTP * ¹Ì¸®º¸±â(HTML) * »ç¿ëÀÚ Á¤ÀÇ µµ±¸ == Emacs ´ÜÃàÅ° Äü ·¹ÆÛ·±½º == http://www.uvm.edu/~atb/emacs/cool_keys.html == EditplusÀÇ ÆíÁý¸í·É == '''µé¿©¾²±â¿Í ³»¾î¾²±â''' * µé¿©¾²±â C-u 8 C-x TAB ¶Ç´Â C-8 C-x TAB ¶Ç´Â C-x r t ÀÔ·ÂÈÄ ½ºÆäÀ̽º³ª ÅÇÀ¸·Î ¿øÇÏ´Â ¸¸Å­ ÀÔ·Â * ³»¾î¾²±â C-- C-u 8 C-x TAB ¶Ç´Â C-- C-8 C-x TAB ¶Ç´Ù¸¥ ¹æ¹ý (»ç°¢Çü ¿µ¿ªÀ» ÀÌ¿ëÇÑ ¼¼¹ÐÇÑ Á¶Á¤) * ¿µ¿ªÁöÁ¤, C-x r k (ÁöÁ¤µÈ ¿µ¿ª Áö¿ò) * ¿µ¿ªÁöÁ¤, C-x r o (ÁöÁ¤µÈ ¿µ¿ª¸¸Å­ °ø¹é»ðÀÔ) '''´ë¼Ò¹®ÀÚ º¯°æ''' * ¼±Åÿµ¿ªÀ» ´ë¹®ÀÚ·Î C-x C-u * ¼±Åÿµ¿ªÀ» ¼Ò¹®ÀÚ·Î C-x C-l '''ÁÖ¼®''' * ¿µ¿ªÁöÁ¤, M-; ¶Ç´Â M-x comment-region emacs¿¡¼­ ÁÖ¼® ¹®ÀÚ¿Í ÇüÅ´ °¢ mode¿¡ µû¶ó ´Ù¸£´Ù. ¿¹, sql mode¿¡¼­´Â ¾Ë¾Æ¼­ Ç¥ÁØ ÁÖ¼®ÀÎ -- ¹®ÀÚ°¡ ÀԷµȴÙ. * FIXME ÁÖ¼® »èÁ¦´Â ¾î¶»°Ô ÇÏ´ÂÁö.., fill prefix¸¦ »ç¿ëÇÏ¸é ¿©·¯ÁÙÀÇ ÁÖ¼®À» ´Þ¶§ ÆíÇÒ°Í °°´Ù. »ç¿ë¹ýÀº? '''ÅÇ°ú °ø¹é''' * ÁÙ ³¡ °ø¹éÁ¦°Å M-\ (M-x delete-horizontal-space) * À¯¿ëÇÑ ÁÙ ³¡ °ø¹éÁ¦°Å »ç¿ëÀÚ Á¤ÀÇ ÇÔ¼ö {{{#!lisp ;; ¹öÆÛÀüü ;; delete horizontal space for the whole buffer (defun delete-horizontal-space-buffer () "Deletes horizontal spaces at the end of every line in buffer." (interactive) (delete-horizontal-space-region (point-min) (point-max))) ;; ÁöÁ¤µÈ ¿µ¿ª¸¸ ;; delete horizontal space in region (defun delete-horizontal-space-region (beg-region end-region) "Deletes horizontal spaces at the end of every line in the region. BEG-REGION and END-REGION are args which specify the region boundaries." (interactive "*r") (let ((end-region-mark (make-marker)) (save-point (point-marker))) (set-marker end-region-mark end-region) (goto-char beg-region) (end-of-line) (delete-horizontal-space) (while (and (= (forward-line 1) 0) (< (point) end-region-mark)) (end-of-line) (delete-horizontal-space)) (goto-char save-point) (set-marker end-region-mark nil) (set-marker save-point nil))) }}} * ÅÇÀ» °ø¹éÀ¸·Î ġȯ * ¿µ¿ªÁöÁ¤(¸¸¾à Àüü ¿µ¿ªÀ» ÁöÁ¤ÇÏ·Á¸é C-x h(mark-whole-buffer)), M-x untabify * FIXME °ø¹éÀ» ÅÇÀ¸·Î ġȯ M-x tabify (more..) * FIXME ÅÇÅ©±â ¼öÁ¤ M-x edit-tab-stops (more...) {{{#!lisp ; FIXME emacs¿¡¼­´Â ¼³Á¤ÆÄÀÏ¿¡ ¾Æ·¡Ã³·³ ÇØÁشٰí ÇØ°á µÉ¸¸Å­ TABÀº ´Ü¼øÇÑ°Í °°Áö ¾Ê´Ù. :( (setq default-tab-width 4) }}} * http://bbs.kldp.org/viewtopic.php?t=68058&highlight=emacs == Editplus¿¡´Â ¾øÁö¸¸ ºÎ°¡ÀûÀ¸·Î ¾Ë¾Æ¾ß ÇÏ´Â Emacs »ç¿ë¹ý == '''À©µµ¿ì''' * ¼öÆòÀ¸·Î ³ª´©±â C-x 3 (M-x split-window-horizontally) * ¼öÁ÷À¸·Î ³ª´©±â C-x 2 (M-x split-window-vertically) * À©µµ¿ì ¿Å°Ü´Ù´Ï±â C-x o (½Ã°è¹æÇâÀ¸·Î À̵¿ÇÑ´Ù. ¶Ç´Â ¸¶¿ì½º·Î Ŭ¸¯ÇÑ´Ù.) * À©µµ¿ì »èÁ¦ C-x 1 * À©µµ¿ì ⠴ø®±â * ±æÀÌ C-x ^ * Æø C-x } ¶Ç´Â C-x { * À©µµ¿ì »çÀÌÁî ÅëÀÏ C-x + º¸ÅëÀº mode lineÀ» ¸¶¿ì½º·Î µå·¡±×ÇÏ¿© Á¶Á¤ÇÑ´Ù. »çÀÌÁ Á¶Á¤Çϱâ À§ÇØ ´ÜÃàÅ°¸¦ ¿©·¯¹ø ´©¸£±â ½È´Ù¸é C-u¸¦ »ç¿ëÇÏ´Â ¹æ¹ýµµ ÀÖ´Ù. ¿¹, C-u 20 C-x ^ TIP. M-x compare-windows ¹öÆÛÀÇ ³»¿ëÀ» ºñ±³ÇÏ°í óÀ½À¸·Î ´Ù¸¥ ºÎºÐÀ» º¸¿©ÁØ´Ù. ¸¸¾à µÎ°³ÀÌ»óÀÏ °æ¿ì ÇöÀç Ä¿¼­°¡ À§Ä¡ÇØ ÀÖ´Â À©µµ¿ì¿Í ½Ã°è ¹æÇâÀ¸·Î ´ÙÀ½ À©µµ¿ìÀÇ ³»¿ëÀÌ ºñ±³µÈ´Ù. ---- CategoryEmacs