{"action":"created","issue":{"url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/4285","labels_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/4285/labels{/name}","comments_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/4285/comments","events_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/4285/events","html_url":"https://github.com/syl20bnr/spacemacs/issues/4285","id":123752016,"number":4285,"title":"line-numbers conflict with git-gutter or git-gutter+?","user":{"login":"Treri","id":2631733,"avatar_url":"https://avatars.githubusercontent.com/u/2631733?v=3","gravatar_id":"","url":"https://api.github.com/users/Treri","html_url":"https://github.com/Treri","followers_url":"https://api.github.com/users/Treri/followers","following_url":"https://api.github.com/users/Treri/following{/other_user}","gists_url":"https://api.github.com/users/Treri/gists{/gist_id}","starred_url":"https://api.github.com/users/Treri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Treri/subscriptions","organizations_url":"https://api.github.com/users/Treri/orgs","repos_url":"https://api.github.com/users/Treri/repos","events_url":"https://api.github.com/users/Treri/events{/privacy}","received_events_url":"https://api.github.com/users/Treri/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-24T03:05:09Z","updated_at":"2015-12-24T07:19:39Z","closed_at":null,"body":"git-gutter symbol cut line-numbers\r\n\r\n![2015-12-24 11 02 35](https://cloud.githubusercontent.com/assets/2631733/11988650/1b7c1674-aa2e-11e5-89d6-e72539e596eb.png)\r\n"},"comment":{"url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/comments/167059840","html_url":"https://github.com/syl20bnr/spacemacs/issues/4285#issuecomment-167059840","issue_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/4285","id":167059840,"user":{"login":"Treri","id":2631733,"avatar_url":"https://avatars.githubusercontent.com/u/2631733?v=3","gravatar_id":"","url":"https://api.github.com/users/Treri","html_url":"https://github.com/Treri","followers_url":"https://api.github.com/users/Treri/followers","following_url":"https://api.github.com/users/Treri/following{/other_user}","gists_url":"https://api.github.com/users/Treri/gists{/gist_id}","starred_url":"https://api.github.com/users/Treri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Treri/subscriptions","organizations_url":"https://api.github.com/users/Treri/orgs","repos_url":"https://api.github.com/users/Treri/repos","events_url":"https://api.github.com/users/Treri/events{/privacy}","received_events_url":"https://api.github.com/users/Treri/received_events","type":"User","site_admin":false},"created_at":"2015-12-24T07:19:38Z","updated_at":"2015-12-24T07:19:38Z","body":"#### System Info\r\n- OS: darwin\r\n- Emacs: 24.5.1\r\n- Spacemacs: 0.105.0\r\n- Spacemacs branch: develop (rev. 374e37e)\r\n- Distribution: spacemacs\r\n- Layers:\r\n```elisp\r\n(emacs-lisp auto-completion better-defaults\r\n            (chinese :variables chinese-default-input-method 'wubi chinese-enable-fcitx t)\r\n            git\r\n            (version-control :variables version-control-diff-tool 'git-gutter version-control-global-margin t)\r\n            html\r\n            (javascript :variables js2-basic-offset 2 js-indent-level 2)\r\n            lua markdown org php python\r\n            (shell :variables shell-default-height 30 shell-default-position 'bottom)\r\n            shell-scripts sql typescript yaml)\r\n```\r\n\r\nand my .spacemacs file is below \r\n\r\n```lisp\r\n;; -*- mode: emacs-lisp -*-\r\n;; This file is loaded by Spacemacs at startup.\r\n;; It must be stored in your home directory.\r\n\r\n(defun dotspacemacs/layers ()\r\n  \"Configuration Layers declaration.\r\nYou should not put any user code in this function besides modifying the variable\r\nvalues.\"\r\n  (setq-default\r\n   ;; Base distribution to use. This is a layer contained in the directory\r\n   ;; `+distribution'. For now available distributions are `spacemacs-base'\r\n   ;; or `spacemacs'. (default 'spacemacs)\r\n   dotspacemacs-distribution 'spacemacs\r\n   ;; List of additional paths where to look for configuration layers.\r\n   ;; Paths must have a trailing slash (i.e. `~/.mycontribs/')\r\n   dotspacemacs-configuration-layer-path '()\r\n   ;; List of configuration layers to load. If it is the symbol `all' instead\r\n   ;; of a list then all discovered layers will be installed.\r\n   dotspacemacs-configuration-layers\r\n   '(\r\n     ;; ----------------------------------------------------------------\r\n     ;; Example of useful layers you may want to use right away.\r\n     ;; Uncomment some layer names and press <SPC f e R> (Vim style) or\r\n     ;; <M-m f e R> (Emacs style) to install them.\r\n     ;; ----------------------------------------------------------------\r\n     ;; auto-completion\r\n     ;; better-defaults\r\n     emacs-lisp\r\n     ;; git\r\n     ;; markdown\r\n     ;; org\r\n     ;; (shell :variables\r\n     ;;        shell-default-height 30\r\n     ;;        shell-default-position 'bottom)\r\n     ;; spell-checking\r\n     ;; syntax-checking\r\n     ;; version-control\r\n\r\n     auto-completion\r\n     better-defaults\r\n     (chinese :variables\r\n              chinese-default-input-method 'wubi\r\n              chinese-enable-fcitx t)\r\n\r\n     git\r\n     (version-control :variables\r\n                      version-control-diff-tool 'git-gutter\r\n                      version-control-global-margin t)\r\n\r\n     html\r\n     (javascript :variables\r\n                 js2-basic-offset 2\r\n                 js-indent-level 2)\r\n     lua\r\n     markdown\r\n     org\r\n     php\r\n     python\r\n     (shell :variables\r\n            shell-default-height 30\r\n            shell-default-position 'bottom)\r\n     shell-scripts\r\n     sql\r\n     typescript\r\n     yaml\r\n     )\r\n   ;; List of additional packages that will be installed without being\r\n   ;; wrapped in a layer. If you need some configuration for these\r\n   ;; packages then consider to create a layer, you can also put the\r\n   ;; configuration in `dotspacemacs/user-config'.\r\n   dotspacemacs-additional-packages '()\r\n   ;; A list of packages and/or extensions that will not be install and loaded.\r\n   dotspacemacs-excluded-packages '()\r\n   ;; If non-nil spacemacs will delete any orphan packages, i.e. packages that\r\n   ;; are declared in a layer which is not a member of\r\n   ;; the list `dotspacemacs-configuration-layers'. (default t)\r\n   dotspacemacs-delete-orphan-packages t))\r\n\r\n(defun dotspacemacs/init ()\r\n  \"Initialization function.\r\nThis function is called at the very startup of Spacemacs initialization\r\nbefore layers configuration.\r\nYou should not put any user code in there besides modifying the variable\r\nvalues.\"\r\n  ;; This setq-default sexp is an exhaustive list of all the supported\r\n  ;; spacemacs settings.\r\n  (setq-default\r\n   ;; If non nil ELPA repositories are contacted via HTTPS whenever it's\r\n   ;; possible. Set it to nil if you have no way to use HTTPS in your\r\n   ;; environment, otherwise it is strongly recommended to let it set to t.\r\n   ;; This variable has no effect if Emacs is launched with the parameter\r\n   ;; `--insecure' which forces the value of this variable to nil.\r\n   ;; (default t)\r\n   dotspacemacs-elpa-https t\r\n   ;; Maximum allowed time in seconds to contact an ELPA repository.\r\n   dotspacemacs-elpa-timeout 5\r\n   ;; If non nil then spacemacs will check for updates at startup\r\n   ;; when the current branch is not `develop'. (default t)\r\n   dotspacemacs-check-for-update t\r\n   ;; One of `vim', `emacs' or `hybrid'. Evil is always enabled but if the\r\n   ;; variable is `emacs' then the `holy-mode' is enabled at startup. `hybrid'\r\n   ;; uses emacs key bindings for vim's insert mode, but otherwise leaves evil\r\n   ;; unchanged. (default 'vim)\r\n   dotspacemacs-editing-style 'vim\r\n   ;; If non nil output loading progress in `*Messages*' buffer. (default nil)\r\n   dotspacemacs-verbose-loading nil\r\n   ;; Specify the startup banner. Default value is `official', it displays\r\n   ;; the official spacemacs logo. An integer value is the index of text\r\n   ;; banner, `random' chooses a random text banner in `core/banners'\r\n   ;; directory. A string value must be a path to an image format supported\r\n   ;; by your Emacs build.\r\n   ;; If the value is nil then no banner is displayed. (default 'official)\r\n   dotspacemacs-startup-banner 'official\r\n   ;; List of items to show in the startup buffer. If nil it is disabled.\r\n   ;; Possible values are: `recents' `bookmarks' `projects'.\r\n   ;; (default '(recents projects))\r\n   dotspacemacs-startup-lists '(recents projects)\r\n   ;; Number of recent files to show in the startup buffer. Ignored if\r\n   ;; `dotspacemacs-startup-lists' doesn't include `recents'. (default 5)\r\n   dotspacemacs-startup-recent-list-size 5\r\n   ;; List of themes, the first of the list is loaded when spacemacs starts.\r\n   ;; Press <SPC> T n to cycle to the next theme in the list (works great\r\n   ;; with 2 themes variants, one dark and one light)\r\n   dotspacemacs-themes '(spacemacs-dark\r\n                         spacemacs-light\r\n                         solarized-light\r\n                         solarized-dark\r\n                         leuven\r\n                         monokai\r\n                         zenburn)\r\n   ;; If non nil the cursor color matches the state color in GUI Emacs.\r\n   dotspacemacs-colorize-cursor-according-to-state t\r\n   ;; Default font. `powerline-scale' allows to quickly tweak the mode-line\r\n   ;; size to make separators look not too crappy.\r\n   dotspacemacs-default-font '(\"Source Code Pro\"\r\n                               :size 13\r\n                               :weight normal\r\n                               :width normal\r\n                               :powerline-scale 1.1)\r\n   ;; The leader key\r\n   dotspacemacs-leader-key \"SPC\"\r\n   ;; The leader key accessible in `emacs state' and `insert state'\r\n   ;; (default \"M-m\")\r\n   dotspacemacs-emacs-leader-key \"M-m\"\r\n   ;; Major mode leader key is a shortcut key which is the equivalent of\r\n   ;; pressing `<leader> m`. Set it to `nil` to disable it. (default \",\")\r\n   dotspacemacs-major-mode-leader-key \",\"\r\n   ;; Major mode leader key accessible in `emacs state' and `insert state'.\r\n   ;; (default \"C-M-m)\r\n   dotspacemacs-major-mode-emacs-leader-key \"C-M-m\"\r\n   ;; These variables control whether separate commands are bound in the GUI to\r\n   ;; the key pairs C-i, TAB and C-m, RET.\r\n   ;; Setting it to a non-nil value, allows for separate commands under <C-i>\r\n   ;; and TAB or <C-m> and RET.\r\n   ;; In the terminal, these pairs are generally indistinguishable, so this only\r\n   ;; works in the GUI. (default nil)\r\n   dotspacemacs-distinguish-gui-tab nil\r\n   ;; (Not implemented) dotspacemacs-distinguish-gui-ret nil\r\n   ;; The command key used for Evil commands (ex-commands) and\r\n   ;; Emacs commands (M-x).\r\n   ;; By default the command key is `:' so ex-commands are executed like in Vim\r\n   ;; with `:' and Emacs commands are executed with `<leader> :'.\r\n   dotspacemacs-command-key \":\"\r\n   ;; If non nil `Y' is remapped to `y$'. (default t)\r\n   dotspacemacs-remap-Y-to-y$ t\r\n   ;; Name of the default layout (default \"Default\")\r\n   dotspacemacs-default-layout-name \"Default\"\r\n   ;; If non nil the default layout name is displayed in the mode-line.\r\n   ;; (default nil)\r\n   dotspacemacs-display-default-layout nil\r\n   ;; If non nil then the last auto saved layouts are resume automatically upon\r\n   ;; start. (default nil)\r\n   dotspacemacs-auto-resume-layouts nil\r\n   ;; Location where to auto-save files. Possible values are `original' to\r\n   ;; auto-save the file in-place, `cache' to auto-save the file to another\r\n   ;; file stored in the cache directory and `nil' to disable auto-saving.\r\n   ;; (default 'cache)\r\n   dotspacemacs-auto-save-file-location 'cache\r\n   ;; Maximum number of rollback slots to keep in the cache. (default 5)\r\n   dotspacemacs-max-rollback-slots 5\r\n   ;; If non nil then `ido' replaces `helm' for some commands. For now only\r\n   ;; `find-files' (SPC f f), `find-spacemacs-file' (SPC f e s), and\r\n   ;; `find-contrib-file' (SPC f e c) are replaced. (default nil)\r\n   dotspacemacs-use-ido nil\r\n   ;; If non nil, `helm' will try to minimize the space it uses. (default nil)\r\n   dotspacemacs-helm-resize nil\r\n   ;; if non nil, the helm header is hidden when there is only one source.\r\n   ;; (default nil)\r\n   dotspacemacs-helm-no-header nil\r\n   ;; define the position to display `helm', options are `bottom', `top',\r\n   ;; `left', or `right'. (default 'bottom)\r\n   dotspacemacs-helm-position 'bottom\r\n   ;; If non nil the paste micro-state is enabled. When enabled pressing `p`\r\n   ;; several times cycle between the kill ring content. (default nil)\r\n   dotspacemacs-enable-paste-micro-state nil\r\n   ;; Which-key delay in seconds. The which-key buffer is the popup listing\r\n   ;; the commands bound to the current keystroke sequence. (default 0.4)\r\n   dotspacemacs-which-key-delay 0.4\r\n   ;; Which-key frame position. Possible values are `right', `bottom' and\r\n   ;; `right-then-bottom'. right-then-bottom tries to display the frame to the\r\n   ;; right; if there is insufficient space it displays it at the bottom.\r\n   ;; (default 'bottom)\r\n   dotspacemacs-which-key-position 'bottom\r\n   ;; If non nil a progress bar is displayed when spacemacs is loading. This\r\n   ;; may increase the boot time on some systems and emacs builds, set it to\r\n   ;; nil to boost the loading time. (default t)\r\n   dotspacemacs-loading-progress-bar t\r\n   ;; If non nil the frame is fullscreen when Emacs starts up. (default nil)\r\n   ;; (Emacs 24.4+ only)\r\n   dotspacemacs-fullscreen-at-startup nil\r\n   ;; If non nil `spacemacs/toggle-fullscreen' will not use native fullscreen.\r\n   ;; Use to disable fullscreen animations in OSX. (default nil)\r\n   dotspacemacs-fullscreen-use-non-native nil\r\n   ;; If non nil the frame is maximized when Emacs starts up.\r\n   ;; Takes effect only if `dotspacemacs-fullscreen-at-startup' is nil.\r\n   ;; (default nil) (Emacs 24.4+ only)\r\n   dotspacemacs-maximized-at-startup nil\r\n   ;; A value from the range (0..100), in increasing opacity, which describes\r\n   ;; the transparency level of a frame when it's active or selected.\r\n   ;; Transparency can be toggled through `toggle-transparency'. (default 90)\r\n   dotspacemacs-active-transparency 90\r\n   ;; A value from the range (0..100), in increasing opacity, which describes\r\n   ;; the transparency level of a frame when it's inactive or deselected.\r\n   ;; Transparency can be toggled through `toggle-transparency'. (default 90)\r\n   dotspacemacs-inactive-transparency 90\r\n   ;; If non nil unicode symbols are displayed in the mode line. (default t)\r\n   dotspacemacs-mode-line-unicode-symbols t\r\n   ;; If non nil smooth scrolling (native-scrolling) is enabled. Smooth\r\n   ;; scrolling overrides the default behavior of Emacs which recenters the\r\n   ;; point when it reaches the top or bottom of the screen. (default t)\r\n   dotspacemacs-smooth-scrolling t\r\n   ;; If non nil line numbers are turned on in all `prog-mode' and `text-mode'\r\n   ;; derivatives. If set to `relative', also turns on relative line numbers.\r\n   ;; (default nil)\r\n   dotspacemacs-line-numbers t\r\n   ;; If non-nil smartparens-strict-mode will be enabled in programming modes.\r\n   ;; (default nil)\r\n   dotspacemacs-smartparens-strict-mode nil\r\n   ;; Select a scope to highlight delimiters. Possible values are `any',\r\n   ;; `current', `all' or `nil'. Default is `all' (highlight any scope and\r\n   ;; emphasis the current one). (default 'all)\r\n   dotspacemacs-highlight-delimiters 'all\r\n   ;; If non nil advises quit functions to keep server open when quitting.\r\n   ;; (default nil)\r\n   dotspacemacs-persistent-server nil\r\n   ;; List of search tool executable names. Spacemacs uses the first installed\r\n   ;; tool of the list. Supported tools are `ag', `pt', `ack' and `grep'.\r\n   ;; (default '(\"ag\" \"pt\" \"ack\" \"grep\"))\r\n   dotspacemacs-search-tools '(\"ag\" \"pt\" \"ack\" \"grep\")\r\n   ;; The default package repository used if no explicit repository has been\r\n   ;; specified with an installed package.\r\n   ;; Not used for now. (default nil)\r\n   dotspacemacs-default-package-repository nil\r\n   ;; Delete whitespace while saving buffer. Possible values are `all',\r\n   ;; `trailing', `changed' or `nil'. Default is `changed' (cleanup whitespace\r\n   ;; on changed lines) (default 'changed)\r\n   dotspacemacs-whitespace-cleanup 'changed\r\n   ))\r\n\r\n(defun dotspacemacs/user-init ()\r\n  \"Initialization function for user code.\r\nIt is called immediately after `dotspacemacs/init'.  You are free to put almost any\r\nuser code here.  The exception is org related code, which should be placed in\r\n`dotspacemacs/user-config'.\"\r\n\r\n  (setq tramp-ssh-controlmaster-options\r\n    \"-o ControlMaster=auto -o ControlPath='tramp.%%C' -o ControlPersist=no\")\r\n\r\n  )\r\n\r\n(defun dotspacemacs/user-config ()\r\n  \"Configuration function for user code.\r\nThis function is called at the very end of Spacemacs initialization after\r\nlayers configuration. You are free to put any user code.\"\r\n\r\n  ;; Make evil-mode up/down operate in screen lines instead of logical lines\r\n  (define-key evil-normal-state-map (kbd \"j\") 'evil-next-visual-line)\r\n  (define-key evil-normal-state-map (kbd \"k\") 'evil-previous-visual-line)\r\n  ;; Also in visual mode\r\n  (define-key evil-visual-state-map (kbd \"j\") 'evil-next-visual-line)\r\n  (define-key evil-visual-state-map (kbd \"k\") 'evil-previous-visual-line)\r\n\r\n  ;; always enable indent-guide\r\n  (spacemacs/toggle-indent-guide-globally-on)\r\n\r\n\r\n  ; ;; show line number\r\n  ; (global-linum-mode)\r\n  ; ;; use customized linum-format: add a space before/after the line number\r\n  ; (unless window-system\r\n  ;   (add-hook 'linum-before-numbering-hook\r\n  ;       (lambda ()\r\n  ;         (setq-local linum-format-fmt\r\n  ;         (let ((w (length (number-to-string\r\n  ;               (count-lines (point-min) (point-max))))))\r\n  ;           (concat \"%\" (number-to-string w) \"d\"))))))\r\n  ; (defun linum-format-func (line)\r\n  ;   (concat\r\n  ;     (propertize \" \" 'face 'linum)\r\n  ;     (propertize (format linum-format-fmt line) 'face 'linum)\r\n  ;     (propertize \" \" 'face 'linum)))\r\n  ; (unless window-system\r\n  ;   (setq linum-format 'linum-format-func))\r\n\r\n  )\r\n\r\n;; Do not write anything past this comment. This is where Emacs will\r\n;; auto-generate custom variable definitions.\r\n\r\n```"}}