#elisp 세미콜론 개수에 따라 달라지는 들여쓰기

less than 1 minute read

;; This function is just an example.
;;; Here either two or three semicolons are appropriate.
(defun foo (x)
;;;  And now, the first part of the function:
  ;; The following line adds one.
  (1+ x))           ; This line adds one.

; 문자 개수에 따라 들여쓰기(indentation)가 달라진다. 재미있는 경험이었다. C++에서 // 개수에 따라 들여쓰기가 달라지는 건 생각도 못 할 일이다.

주석은 ; 문자로 시작하면 된다고? ; 문자 하나 달랑 붙더니 오른쪽으로 가버려서 당황했다. ;; 붙이니 잘 붙어 있두만. 이제 보니 두 개랑 세 개도 차이가 있다.

들여쓰기로 강제하는 건 니가 처음이야. 알아서 해주니 편하네.

참고

C-x C-s C-x C-c