From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Luca Ferrari Newsgroups: gmane.emacs.help Subject: Re: yasnippet global mode not active when visiting a markdown buffer Date: Mon, 14 Nov 2022 14:09:27 +0100 Message-ID: References: <636ea9c8.5d0a0220.378bd.6b4a@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18704"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Bruno Barbier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 15 02:33:42 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oukpa-0004iq-If for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 15 Nov 2022 02:33:42 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ouio4-00009W-HF; Mon, 14 Nov 2022 18:24:00 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ouifS-0005tR-IR for help-gnu-emacs@gnu.org; Mon, 14 Nov 2022 18:15:08 -0500 Original-Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ouZDx-0006O5-C3 for help-gnu-emacs@gnu.org; Mon, 14 Nov 2022 08:10:06 -0500 Original-Received: by mail-wr1-x436.google.com with SMTP id y16so18132263wrt.12 for ; Mon, 14 Nov 2022 05:10:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=j+ancFM7IiCg2VUwVwr6dqL9J7J8jbEkB8fCkkZK4Q8=; b=c0HGzeavJw8btVtfe9GyNxS4tEXY4fi/Xs9kEGoo4elGumRq0nXUmqBaHfqixLuQBb Dfn06qzCgZ6upN70ym4OSRBlphCajzTcxFuM9AlOLkgZv1p5ZoobGhDY6PIkiNi2+ets CPa20IopHri4OEZ5K+cuHj5At/9og81k59z3oBGPUr8ZJsCKhqpdMtqdBOb74a5nzuuN fol5zB3n43pZCoQN9rLPmqC7VIf5gZydxw/p679yd33TNFfMBTaQviZ9duBi/HXS7+yU cm+xFQJIy3fhw2xrLZepSRNWCx/acdoM3xdf0snCmZlIrlPyt7TNCsfrPvyc2+qATZQV PbPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=j+ancFM7IiCg2VUwVwr6dqL9J7J8jbEkB8fCkkZK4Q8=; b=y8muEN/t+9DMGkpkQNUiV28HzJpcAYEYOHCMtgIdBfnG/q0TtVHK0ome0ywNZKI7dR /7VYBjp97sBNyyZl4WN+nauFIuicAc0VLelefDfF0P1BgAGL1j/i5mJs2BtmUJjRjsJN GMkEV0ZeDMAFV6hzewuN57n23TrH+vZ09X9iYRY5K0Ago/9sKzStxu31aeNOTx4jeMEC ZRMBV+E7iKEQaOzaPOgOsMLIr4VzNsN/egKDb76TC2syrfHlou30sOYuaDIL9hkMzeAC 0JOtjE3Q37O1wR6Lix4N/vSaIB8hHB9AZgJ5gcWcZlKtFtzXBz/5SMIYknQK++93A/0N 5IFg== X-Gm-Message-State: ANoB5pmzOK2kh8hI/Gz+xm8BEeAqwuQdytDUuGNWti6inP+lk1wVl/oC McC1BIkYk3SnFfe+ma8ud4d96BzVMohYNDSa8o0= X-Google-Smtp-Source: AA0mqf56czYRdqbSWolfLPKJ6iktg3r/9ZP+IXeDBGRmNjvHrj9GViVPmglGMA1FZ8cid+PE80fKQ9wQBVPjVWtORJ0= X-Received: by 2002:adf:f60f:0:b0:236:8130:56dd with SMTP id t15-20020adff60f000000b00236813056ddmr7629764wrp.15.1668431403309; Mon, 14 Nov 2022 05:10:03 -0800 (PST) In-Reply-To: <636ea9c8.5d0a0220.378bd.6b4a@mx.google.com> Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=fluca1978@gmail.com; helo=mail-wr1-x436.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:140955 Archived-At: On Fri, Nov 11, 2022 at 9:00 PM Bruno Barbier wrote: > > > > I'm not using use-package nor markdown-mode. > > But why would this: > > >> (add-hook 'prog-mode-hook #'yas-minor-mode) > > be relevant here ? > > > markdown-mode is not about programs, it's about text. > Thanks, yes, my idea is to load yas-minor-mode whenever a programming mode is there. I know markdown-mode is not about programming, and I think there's a reason why it is not working with my setup: markdown-mode binds a set of commands to C-c C-s as I'm trying to do. I will report back once I've configured it, also testing your idea. Thanks, Luca