I newbee in Emacs, and trying to set up emacs. Well, I've written a init.el file and except few things always work properly. But in -nw mode cursor doesn't work (blink not working), tabs doesn't work (2 tabs always, and I can't do few tabs), cursor-color doesn't work and etc. What Do I do wrong?
init.el:
(require 'package) ;; package.el
;; repositories
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
("melpa" . "http://melpa.org/packages/")
("org" . "http://orgmode.org/elpa/")
("marmalade" . "http://marmalade-repo.org/packages/")
))
(package-initialize)
(load-theme 'dracula t)
;;;;;;;;;;;;;;;;;;;;;;WINDOW SIZE;;;;;;;;;;;;;;;;;;;;;;;;;;;
(add-to-list 'default-frame-alist '(height . 40))
(add-to-list 'default-frame-alist '(width . 120))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;SPLASH SCREEN;;;;;;;;;;;;;;;;;;;;;;;;;
(setq inhibit-startup-screen t) ;; turn off
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;TAB BEHAVIOR;;;;;;;;;;;;;;;;;;;;;;;;;;
(setq-default tab-width 4)
(setq-default indent-tabs-mode nil)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;CURSOR SETTINGS;;;;;;;;;;;;;;;;;;;;;;;;
(save-place-mode 1) ;; save cursor place in file
(set-default 'cursor-type 'box) ;; cursor type underscore
(set-cursor-color "#ffffff")
(blink-cursor-mode 1)
;;(setq visible-cursor nil)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(setq frame-title-format "emacs") ;;
(menu-bar-mode -1) ;; hide menu-bar
(tool-bar-mode -1) ;; hide tool-bar
(scroll-bar-mode -1) ;; hide-scroll bar
(column-number-mode) ;; column numbers show in bottom
(show-paren-mode)
(global-hl-line-mode)
(winner-mode t)
(windmove-default-keybindings)
(global-set-key (kbd "M-x") 'smex)
(global-set-key (kbd "C-c C-c M-x") 'execute-extended-command)
(global-display-line-numbers-mode)
(ac-config-default)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(package-selected-packages (quote (auto-complete smex dracula-theme))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
comment-region
to comment out a selection of lines (the region). And withC-u
first you can use it to uncomment a selection of lines. – Drew Jun 6 '20 at 1:50C-h i g (emacs)Cursor Display
– phils Jun 6 '20 at 11:12